winfinit / aamvajs

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

Rev2016 #8

Open bornagaingeek opened 6 years ago

bornagaingeek commented 6 years ago

Add and update all current barcode versions, through version 9 (2016). Add methods to parse version number and dissect dates. Updated example.

jarodhanko commented 6 years ago

Can you confirm if you have any issues with the following barcode (Pennsylvania Sample Driver's License: http://www.lcb.pa.gov/Education/PublishingImages/BackOf2017DL.jpg)

@ ANSI 636025080002DL00410268ZP03090030DLDAQ99999999 DCSSAMPLE DDEU DACJANICE DDFU DADANN DDGU DCAC DCBNONE DCDNONE DBD10052015 DBB08041969 DBA08042023 DBC2 DAU066 IN DAYBRO DAG123 MAIN STREET DAIHARRISBURG DAJPA DAK171010000 DCF1234567890123456789012345 DCGUSA DCK1234567890123456 DDB10012015 DDK1 DDL1 ZPZPAN ZPB00 ZPC123 ZPDNONE

justinkiang commented 3 years ago

This does not work for v9. v9's field orders are different so the regex fails to match. On my test V9, it goes in the order of: DAQ, DCS, DDE, DAC, DDF, DAD, DDG, DCA, DCB, DCD, DBD, DZBB, DBA, DBC, DAU, DAY, DAG, DAI, DAJ, DAK, DCF, DDF, DCG, DAW, DAZ, DCK, DDA, DDB, DDK, ZCZ, ZCB, ZCC, ZCD