-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Incorrect parsing of regex containing '/' #3429
Comments
Test case:
write data
Query using Go regex - Does not produce expected output:
Query using double escaped regex - does produce expected output:
I have written some failing go tests and am having a bit of a look, but still getting my head around the project |
And further, the edge case seems to be two // characters Either one of the following two queries DO produce the correct output:
|
Sorry for the horrible git fail there . . . There is fix in the open pull request and a couple of tests. Would love another few eyes more familiar with the project to have a look over. |
…nerated in influxql/ast.go add the / char as a start and end delimiter, but does not escape any / characters that may exist with the regex
Bugfix for #3429 String representations of RegexLiterals generated in…
It looks like a PR was merged for this bug for 0.9.5. I'm going to close out this issue. If this is still an issue, please reopen this ticket. |
Running official nightly from 0.9.2 downloaded 22 Jul 2015
when using a regex where clause, a regex containing the '/' character will be truncated even if it is properly escaped. This is problematic when you have used a URL as a tag
(likely any clause after having a bit of a look at the code)
The following query fails:
Escaping the escaping backslash as below appears to get around the problem, but is then not a valid go regex anymore
The text was updated successfully, but these errors were encountered: