bear/parsedatetime — pull request #21 by hoomanlogic (2013-08-02 17:16:48+00:00)
Title: Bugfix w/ test, improved regex, and new nlp() function

BUGFIX: Incorrect year recognition in the absence of day: ie. Aug. 2013 was matching as 8/20/13 instead of 8/1/2013.

IMPROVED REGEX: Ok, i finally got a good enough handle on regex to be able to match everything in the previous RE_DATE3 that is utilized through the code, so i got rid of my RE_DATE_MDY and RE_DATE_DMY patterns. All the tests i wrote to ensure that This also means that the parse() function code is now virtually exactly has it was before i first touched it, and only the RE_DATE3 regex pattern is changed.

NLP FUNCTION: It's working pretty dang good so far in my testing, but official tests are to come.