Closed syohex closed 4 years ago
This is not a bug. Both non-escape +
and escape \\+
are matched against +
character in this case. However I suppose escaping meta character in regular expression is a good practice and easy to understand code.
OK thanks for the suggestion. I won't merge this as a pull request because I don't want to mess up your contribution history with little code-review changes like this, but I may make the change.
By the way, please do add descriptions to PRs -- I don't think it's ever correct to open a PR in a public project with no explanation of the change.
Hi @syohex, thanks for this. Can you explain the bug that you are fixing and give an example of how to reproduce it?