-
Notifications
You must be signed in to change notification settings - Fork 2
fix ESCAPE_RE regular expression #3
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
fix ESCAPE_RE regular expression #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Only two minor code style issues.
| assert str( | ||
| Proximity(Value("foo bar", safe=True), 12, safe=True) | ||
| ) == '"foo bar"~12' | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add additional new line to satisfy pep8 checks
|
|
||
| def test_can_escape_special_characters(): | ||
| assert str(Q(foo="\\")) == "foo:\\\\" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add additional new line to satisfy pep8 checks
Make it match a single backslash character. Test that it matches a single backslash. Remove Proximity(Value()): they cannot be equal, because the space will be escaped in the instanciation of Value, and the backslash used to escape the space will then be escaped in Proximity.
|
Thanks for the review. I updated my branch. |
|
Thanks! I will create new realease in the beginning of the next week when I resolve pypy build issue on travis. |
|
Released as |
Make it match a single backslash character. Test that it matches a
single backslash. Remove Proximity(Value()): they cannot be equal,
because the space will be escaped in the instanciation of Value, and the
backslash used to escape the space will then be escaped in Proximity.