-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Title with colon #1
Comments
@sindresorhus Meow :) ? |
Don't have time to look into this right now, but looks like I need to give higher priority to the last part of the title. PR welcome in form of a fix or even just a failing test-case. |
👍 |
I have done some work on this. I have basically added two test cases. One of them uses the node-curl package, and curls the page from Youtube and then finds the title. This returns an appropriate response. ( The second test is using a fixture. I have stored the HTML in a new fixture file, and then run the same test using a fixture. Surprisingly, this returns the result I am not able to figure out why the two differing results are found. Find my new tests at: https://github.com/icyflame/article-title/blob/add-tests-for-titles-with-colon/test.js#L23 Output of the new test: The one test that passes is the one which curls the youtube HTML. cc: @sindresorhus |
Signed-off-by: Siddharth Kannan <[email protected]>
Signed-off-by: Siddharth Kannan <[email protected]>
I am seeing a lot of incorrect results when using
I think two things can be done the |
@sindresorhus If you agree with the new logic regarding only one |
Yup. I agree. PR welcome :) |
Results in:
Commenting out this RE in the code, gives the right result that being
Wikipedia: #Edit2014
//cc @sindresorhus
The text was updated successfully, but these errors were encountered: