diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-05 14:55:25 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-05 14:55:25 -0800 |
| commit | 8e65fed76ab3ea2c1d7cee92c9272f939b231506 (patch) | |
| tree | a7bbe43f3a7dde63bd8ac20ff0a1f1b05e600155 /places.peg | |
| parent | 1256fb6666f1934e67ce4ae226ef3cac4598274b (diff) | |
Added support for noon/midnight, fixed bug in 12:XX calculations.
Diffstat (limited to 'places.peg')
| -rw-r--r-- | places.peg | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -16,6 +16,8 @@ days <- time <- {| {:hour: {[0-9]+} :} (":" {:minute: {[0-9]+} :})? {:ampm: { "am" / "pm"} :} + / ("noon" {:hour: {~''->'12'~} :} {:ampm: {~''->'pm'~} :}) + / ("midnight" {:hour: {~''->'12'~} :} {:ampm: {~''->'am'~} :}) |} tag <- word (" "+ word)* word <- [^%nl%tab (),:#0-9-]+ |
