Skip to content

Commit aa91560

Browse files
committed
Fix parser rule for 'backof' and 'frontof'
1 parent e59ab55 commit aa91560

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: parse_date.re

+2-2
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,8 @@ isoweek = year4 "-"? "W" weekofyear;
947947
exif = year4 ":" monthlz ":" daylz " " hour24lz ":" minutelz ":" secondlz;
948948
firstdayof = 'first day of';
949949
lastdayof = 'last day of';
950-
backof = 'back of ' hour24 space? meridian?;
951-
frontof = 'front of ' hour24 space? meridian?;
950+
backof = 'back of ' hour24 (space? meridian)?;
951+
frontof = 'front of ' hour24 (space? meridian)?;
952952

953953
/* Common Log Format: 10/Oct/2000:13:55:36 -0700 */
954954
clf = day "/" monthabbr "/" year4 ":" hour24lz ":" minutelz ":" secondlz space tzcorrection;

Diff for: tests/files/frontof.parse

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TS: 0 | -99999--99999--99999 -1:45:00 | frONt of 0 0
2+
TS: 0 | -99999--99999--99999 15:45:00 | frONt of 4pm
3+
TS: 0 | -99999--99999--99999 15:45:00 | frONt of 4 pm

0 commit comments

Comments
 (0)