From 795b3d896116a468296246466d1e055be104e712 Mon Sep 17 00:00:00 2001 From: Jesse Gumm Date: Wed, 13 Apr 2016 19:39:30 -0500 Subject: [PATCH] Add some between tests with the relative tests --- src/qdate.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qdate.erl b/src/qdate.erl index d273cf9..a00a599 100644 --- a/src/qdate.erl +++ b/src/qdate.erl @@ -679,7 +679,7 @@ parse_relative(_) -> %% nested case expressions, but I can deal with it. parse_actual_relation(Relation) -> PrefixRE = "^(\\-|\\+|in)\\s?(\\d+) (second|minute|hour|day|week|month|year)s?$", - SuffixRE = "^(\\d+) (second|minute|hour|day|week|month|year)s\\s?(ago|from now)?$", + SuffixRE = "^(\\d+) (second|minute|hour|day|week|month|year)s?\\s?(ago|from now)?$", case re:run(Relation, PrefixRE, [{capture, all_but_first, list}]) of nomatch -> case re:run(Relation, SuffixRE, [{capture, all_but_first, list}]) of