pydata / numexpr

Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
https://numexpr.readthedocs.io/en/latest/user_guide.html
MIT License
2.25k stars 212 forks source link

fix sanitizer forbid colon within quotes #469

Closed 27rabbitlt closed 10 months ago

27rabbitlt commented 10 months ago

Sanitizer will forbid forbidden characters to be used within quotes, which is unnecessary.

I passed this by firstly removing content within quotes and then let regular expression to match the blacked list.

I also added corresponding tests for this and a previous change https://github.com/pydata/numexpr/pull/462

This should fix issue https://github.com/pydata/numexpr/issues/468