Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix parser rule for 'backof' and 'frontof'
  • Loading branch information
derickr committed Aug 14, 2017
1 parent e59ab55 commit aa91560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse_date.re
Expand Up @@ -947,8 +947,8 @@ isoweek = year4 "-"? "W" weekofyear;
exif = year4 ":" monthlz ":" daylz " " hour24lz ":" minutelz ":" secondlz;
firstdayof = 'first day of';
lastdayof = 'last day of';
backof = 'back of ' hour24 space? meridian?;
frontof = 'front of ' hour24 space? meridian?;
backof = 'back of ' hour24 (space? meridian)?;
frontof = 'front of ' hour24 (space? meridian)?;

/* Common Log Format: 10/Oct/2000:13:55:36 -0700 */
clf = day "/" monthabbr "/" year4 ":" hour24lz ":" minutelz ":" secondlz space tzcorrection;
Expand Down
3 changes: 3 additions & 0 deletions tests/files/frontof.parse
@@ -0,0 +1,3 @@
TS: 0 | -99999--99999--99999 -1:45:00 | frONt of 0 0
TS: 0 | -99999--99999--99999 15:45:00 | frONt of 4pm
TS: 0 | -99999--99999--99999 15:45:00 | frONt of 4 pm

0 comments on commit aa91560

Please sign in to comment.