mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 458 forks source link

Use a map to avoid gsub on every parse pattern #342

Open jmondo opened 7 years ago

jmondo commented 7 years ago

Same idea as #340 except less intrusive to the developer

I borrowed from active support #underscore method for snake casing

davispuh commented 7 years ago

I've been working on #278 (which rewrites quite a bit of logic) for some while but it's still unfinished and lately I haven't had time to continue it but I still plan on finishing it eventually and you should look at it since it doesn't need this at all...