-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error parsing C-style strings #2
Comments
Yes, this seems like a special case that's not supported at the moment. The library expects that It will require some tweaking to make the reported case work also. |
I'm trying to come up with a RegEx that would help me skip those special cases, without complicating the algorithm further. I had to open a question on StackOverflow for it, as I got stuck with such a RegEx. We just need to skip every |
PostgreSQL supports C-style string escaping in
E''
strings:https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE
e.g.:
However pg-minify v1.0.0 (and v0.5.5) baulks at this:
The text was updated successfully, but these errors were encountered: