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

Remove \X characters in character ranges for url regex. #10

Closed
wants to merge 1 commit into from

Conversation

awochna
Copy link

@awochna awochna commented Jun 18, 2017

This might not be the right course of action, but removing them gets all
tests to pass. If this is wrong, it implies that the tests are not yet
comprehensive enough, but then again, regex tests almost can't be.

In the original regex set linked to from the documentation
(https://gist.github.com/dperini/729294), these characters are unicode
characters like \u00a1. I haven't been able to find the equivalent in
my searches for regex characters in elixir beginning with a \X. I'm
sure it also makes for poor search queries.

Closes #9

If someone knows how I can rewrite this to properly use \X, please let me know and I will.

This might not be the right course of action, but removing them gets all
tests to pass. If this is wrong, it implies that the tests are not yet
comprehensive enough, but then again, regex tests almost can't be.

In the original regex set linked to from the documentation
(https://gist.github.com/dperini/729294), these characters are unicode
characters like `\u00a1`. I haven't been able to find the equivalent in
my searches for regex characters in elixir beginning with a `\X`. I'm
sure it also makes for poor search queries.

Closes fourkio#9
@awochna
Copy link
Author

awochna commented Jun 18, 2017

This is still a work in progress as I'm trying to add unicode character matching to urls (including tests) in a way that compiles on Elixir 1.4.4/OTP 20 RC2.

@awochna
Copy link
Author

awochna commented Jun 21, 2017

Closing this to create a cleaner pull request.

@awochna awochna closed this Jun 21, 2017
@awochna awochna deleted the 9-invalid-range branch June 21, 2017 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant