mojombo / chronic

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

Don't mutate Token#word when inspecting tokens #244

Closed jdelStrother closed 10 years ago

jdelStrother commented 10 years ago

Just a minor thing, but while debugging something else I kept running into Token#word changing when it got inspected in IRB

davispuh commented 10 years ago

Nice :+1: , that clearly is a bug, it shouldn't modify state.