Skip to content

Commit

Permalink
[WIP] Add relational and logic operators to valid chars
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Oct 15, 2024
1 parent 437e9ec commit fbcdd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blosc2/lazyexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def validate_expr(expr: str) -> None:
raise ValueError(f"Expression {expr} has forbidden control characters.")

# Check for invalid characters not covered by the tokenizer
invalid_chars = re.compile(r"[^\w\s+\-*/%().,=]")
invalid_chars = re.compile(r"[^\w\s+\-*/%().,=<>!&|~^]")
if invalid_chars.search(skip_quotes) is not None:
# Print offending characters
invalid_chars = invalid_chars.findall(skip_quotes)
Expand Down

0 comments on commit fbcdd30

Please sign in to comment.