From c13aed669c27f612a356262def4d442fe0e0076f Mon Sep 17 00:00:00 2001 From: Jelmer van der Linde Date: Thu, 23 Nov 2023 16:29:48 +0000 Subject: [PATCH] Add time separator to num_mismatch Re #132. --- opuscleaner/filters/num_mismatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opuscleaner/filters/num_mismatch.py b/opuscleaner/filters/num_mismatch.py index 0fa65bc..5ff26cc 100755 --- a/opuscleaner/filters/num_mismatch.py +++ b/opuscleaner/filters/num_mismatch.py @@ -12,7 +12,7 @@ ) (?:0*) # allow for 0 prefixes which we then ignore when comparing (?P\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)