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

Checkdigit in ISO-format EvcoID is optional. #101

Open
remcotjeerdsma opened this issue Sep 2, 2022 · 0 comments
Open

Checkdigit in ISO-format EvcoID is optional. #101

remcotjeerdsma opened this issue Sep 2, 2022 · 0 comments

Comments

@remcotjeerdsma
Copy link

remcotjeerdsma commented Sep 2, 2022

https://github.com/hubject/oicp/blob/master/OICP-2.3/OICP%202.3%20EMP/03_EMP_Data_Types.asciidoc#31-evcoidtype

Current regex:
([A-Za-z]{2}-?[A-Za-z0-9]{3}-?C[A-Za-z0-9]{8}-?[\d|A-Za-z])
Proper regex:
([A-Za-z]{2}-?[A-Za-z0-9]{3}-?C[A-Za-z0-9]{8}-?[\d|A-Za-z]?)

The regex in this section is incorrect, as it does not allow omittance of the optional check digit in an ISO-formatted EvcoID.

Official emi3 standard: https://emi3group.com/wp-content/uploads/sites/5/2018/12/eMI3-standard-v1.0-Part-2.pdf
(image)

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