Skip to content

Commit

Permalink
Merge pull request #452 from rebecca-palmer/sanitizefixes
Browse files Browse the repository at this point in the history
sanitization: reduce unnecessary rejections
  • Loading branch information
FrancescAlted authored Sep 25, 2023
2 parents eaa520e + e65bfd5 commit 62aa9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numexpr/necompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def __str__(self):


_flow_pat = r'[\;\[\:]'
_dunder_pat = r'__[\w]+__'
_dunder_pat = r'(^|[^\w])__[\w]+__($|[^\w])'
_attr_pat = r'\.\b(?!(real|imag|\d*[eE]?[+-]?\d+)\b)'
_blacklist_re = re.compile(f'{_flow_pat}|{_dunder_pat}|{_attr_pat}')

Expand Down

0 comments on commit 62aa9d8

Please sign in to comment.