Skip to content

Commit a98c1b8

Browse files
committed
Fixes the regex of 'date_exceptional_day' to support fields like 'Dec 25: off'
1 parent 358b7b6 commit a98c1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

humanized_opening_hours/field.ebnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ day_periods : period ("," period)*
3737
| "closed" -> period_closed
3838
3939
// This regex catches one or two digit numbers not followed by a colon ":", to avoid confusion with "DIGITAL_MOMENT".
40-
date_exceptional_day : MONTH " " /([0-3][0-9])(?!:)|((?<![0-9])[0-9])(?!:)+/ -> exceptional_day
40+
date_exceptional_day : MONTH " " /([0-3][0-9])(?!:[0-9])|((?<![0-9])[0-9])(?!:[0-9])+/ -> exceptional_day
4141
4242
field_part : concerned_period day_periods
4343
| easter " " day_periods

0 commit comments

Comments
 (0)