Skip to content

Commit

Permalink
Allow '.' in print expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Sep 18, 2024
1 parent e8e80e0 commit 6653d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatdbg/native_util/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def command_is_safe(cmd: str) -> bool:

# Allowed conditionally.
if command_name in ["p", "print"]:
return re.fullmatch(r"[a-zA-Z0-9_ *]*", cmd) is not None
return re.fullmatch(r"[a-zA-Z0-9_ *\.]*", cmd) is not None

return False

0 comments on commit 6653d2c

Please sign in to comment.