Permalink
Browse files

Fix parser rule for 'backof' and 'frontof'

  • Loading branch information...
derickr committed Aug 14, 2017
1 parent e59ab55 commit aa9156006e88565e1f1a5f7cc088b18322d57536
Showing with 5 additions and 2 deletions.
  1. +2 −2 parse_date.re
  2. +3 −0 tests/files/frontof.parse
View
@@ -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;
@@ -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.