betodealmeida commented on PR #34413:
URL: https://github.com/apache/superset/pull/34413#issuecomment-3140443902
OK, pushed an updated that uses 2 regexes instead of one, to account for the
`'\'` edge case. All original tests pass, and I have a test for:
```python
stmt = sqlparse.parse(r"SELECT 'Don\'t stop' FROM table")[0]
assert len(stmt.tokens) == 7
assert str(stmt.tokens[2]) == r"'Don\'t stop'"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]