Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in California drivers license format #5

Open
zenitram56 opened this issue Aug 7, 2018 · 0 comments
Open

Change in California drivers license format #5

zenitram56 opened this issue Aug 7, 2018 · 0 comments

Comments

@zenitram56
Copy link

zenitram56 commented Aug 7, 2018

It seems the format for the codes of the new drivers license in California (expire in 2023 instead of 2020) have changed a bit. The drivers license number seems to be located under DCK, previously it was located under DAQ. I made an quick and dirty adjustment to the parseUsdl.js file to accommodate for this in my local environment:

Under line 22:

/////////////////////////////////////////////
// Switch values if true, of value and key //
/////////////////////////////////////////////
if (isNewDl(code, line)) value = line.slice(8, 16), key = 'documentNumber'

Under line 43:

/////////////////////////////
// Determine if DCK code's //
// key is documentNumber   //
/////////////////////////////
const isNewDl = (code, line) => (code === "DCK" && line.slice(0, 8).match('DCK[0-9][0-9][0-9][0-9][0-9]') !== null)

Just wanted to bring attention to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant