AmyOlex / Chrono

Parsing time normalizations from text.
GNU General Public License v3.0
15 stars 4 forks source link

Fixed Value Error parsing and removed try-catch block. Had to restric… #2

Closed AmyOlex closed 6 years ago

AmyOlex commented 6 years ago

Fixed Value Error parsing and removed try-catch block. Had to restrict the addition of a day to the range <=31 in the buildTextMonthAndDay() method. Issue was the spelled out year was not being parsed correctly, but was returning a number. e.g. "nineteen ninety-seven" was returned as number 1717, which was outof range for the day. This is now skipped and ignored.