Skip to content

Commit

Permalink
Merge pull request #8 from andreytkachenko/patch-1
Browse files Browse the repository at this point in the history
Add "today" as well (besides "now")
  • Loading branch information
stevedonovan committed Feb 9, 2019
2 parents c3f625f + eb2d6ef commit 31d04e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl <'a> DateParser<'a> {
if let Some(name) = t.as_iden() {
let shortcut = match name {
"now" => Some(0),
"today" => Some(0),
"yesterday" => Some(-1),
"tomorrow" => Some(1),
_ => None
Expand Down

0 comments on commit 31d04e4

Please sign in to comment.