Skip to content

Commit

Permalink
fix regex for parsing (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Atkinson <[email protected]>
  • Loading branch information
erindatkinson authored Apr 22, 2024
1 parent 74e4dd8 commit c35ac0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/counting/counting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""module maaging counting state"""

from subprocess import run, CalledProcessError
from logging import debug
from re import search
Expand All @@ -25,7 +26,7 @@ def parse_message(message: str) -> tuple[int, bool]:
return (-1, False)

# check to see if there's like text in the message after some math
pattern = r"[a-zA-Z]"
pattern = r"[^0-9\/\*\^\_\-\+ ]"
search_match = search(pattern, message)
if search_match is not None:
math = message[: search_match.start()]
Expand Down

0 comments on commit c35ac0b

Please sign in to comment.