Skip to content
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

Added proper escaping for '+' in titles, escaping spec #76

Merged
merged 1 commit into from
Mar 1, 2018

Conversation

pcantrell
Copy link
Contributor

The library doesn't properly escape + in article titles. I came across this when I asked for the article for C++, and the article for the letter C:

$ ruby -r wikipedia -e 'p Wikipedia.find("C++").title'
"C"

This PR fixes the problem and adds a spec for it.

@pietromenna
Copy link
Collaborator

Hey @pcantrell !

Thank you so much for your Pull Request! I just tested and it works well and it solves #67

I will be closing the issue and generate a new version!

Once again! Thank you for sending this Pull Request and the time you invested!

@pcantrell
Copy link
Contributor Author

Thanks for the merge! Found slash handling is broken too; sending second PR.

@pcantrell pcantrell mentioned this pull request Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants