winfinit / aamvajs

AAMVA parser
BSD 3-Clause "New" or "Revised" License
35 stars 28 forks source link

Fixes and date format #3

Closed mkazlauskas closed 8 years ago

mkazlauskas commented 8 years ago

I made some fixes to PDF regexes. Version 3 was not working when some field in the middle was missing. Neither were working when last one is missing. Neither were capturing the last field.

In addition to that I added some more tests and changed date format to string of YYYYMMDD everywhere, so that it's uniform. I don't think we need a Date object since the fields have no time, and timezone is unknown.