Skip to content

Commit

Permalink
Add time separator to num_mismatch
Browse files Browse the repository at this point in the history
Re #132.
  • Loading branch information
jelmervdl committed Nov 23, 2023
1 parent 24014c4 commit c13aed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opuscleaner/filters/num_mismatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
)
(?:0*) # allow for 0 prefixes which we then ignore when comparing
(?P<value>\d+ # digits before the first comma or dot
(?:[\.,]\d+)* # allow commas or dots, i.e. 300,000.0 but not 3,,,5
(?:[\.,:]\d+)* # allow commas or dots, i.e. 300,000.0 but not 3,,,5
)
\b # disallow 30beep, but also 30th and 1st #TODO
""", re.X)
Expand Down

0 comments on commit c13aed6

Please sign in to comment.