-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Escape sequences are being parsed inside strings #73
Comments
this is a challenging problem. Need to think about how to solve it. First idea, do the scanning of option content differently. |
Debugging into the library, I had the impression that this is done by Go, by the Scanner interface if I'm not wrong. |
true, so apparently the option syntax does not conform to the Go language spec (which it should not ofcourse but saved me a lot of work, initially). |
i created a test for this but was surprised to see a PASS
|
This is the file that gives errors to me (using the lyft validator):
|
what go sdk version are you using? |
so when testing the actual value in Go, I needed to escape the slashes
I think my parser is accepting it because of so i don't know how you found this problem (and i do not), yet. |
I will try on the latest version. |
I had the same problem on the last version. I am uploading my test source and file, running "go run main.go" on this directory triggers the errors I talked above. |
thanks, this indeed reproduces the problem. I will find the differences later |
thx, i know now why I did not see the errors before. Now I am working on a solution. |
see #74 |
Nice, thanks! |
can this be closed? |
Another problem I found, given this definition:
The parser is trying to escape the "\d" sequence in "pattern", but I don't think it should interpret the string, shouldn't it leave this to the library user?
If I added another "" after the other ones, then it works, but the output string has the two "", it even doesn't remove them.
The text was updated successfully, but these errors were encountered: