chrisshroba/AlpacaChat — pull request #47 by xColonelPanic (2014-12-10 00:13:11+00:00)
Title: Regex Fixes

fixed some regex stuff that was causing problems, like any message with "st" or "ave" or "tr" being saved as an address. this is why the word "test" would always be saved. In a test conversation I had on the client, almost every message was being saved to addresses. Now addresses must be in the following format:

(1-5 numbers) (space) (1-30 alphanumeric characters) (space) (street, avenue, road, or trail, in a variety of capitalizations and abbreviations).

Also added a more robust date and phone number regex. Messages that include days of the week are now saved under Dates & Times. phone numbers can now be recognized in the following formats:
xxxxxxxxxx
1xxxxxxxxxx
xxx-xxx-xxxx
1-xxx-xxx-xxxx