AmyOlex / Chrono

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

Not capturing date format "21-SEP-2009" #55

Closed AmyOlex closed 6 years ago

AmyOlex commented 6 years ago

Formatted date methods hasYear, hasMonthOfYear, and hasDayOfMonth were not capturing the date format “21-SEP-2009”.

AmyOlex commented 6 years ago

I added a statement to the regex of the hasYear, hasMonthOfYear, and hasDayOfMonth methods for the middle section to include searching for letters: |[A-Za-z]{3,4} Old RegEx: '([0-9]{1,2})-/:-/:' New RegEx: '([0-9]{1,2})-/:-/:'