-
Notifications
You must be signed in to change notification settings - Fork 27
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
First name and last name share the same range #50
Comments
I'm not sure if this is a bug or a feature |
Ranges are the full ranges used by the parser. The info you're looking for should be directly on the field. For example: mrz/src/parse/__tests__/swissDrivingLicense.test.ts Lines 28 to 45 in e4af53c
|
Thanks! |
The |
When a value doesn't match the expected regex, it still has a clear value with start and end indexes. BREAKING CHANGE: The result's `details` may now include a non-null `value` even when it's invalid. The `start` and `end` fields will refer to it instead of the entire range when that happens. The `fields` object is unchanged and still contains `null` for invalid fields. Closes: #50
When a value doesn't match the expected regex, it still has a clear value with start and end indexes. BREAKING CHANGE: The result's `details` may now include a non-null `value` even when it's invalid. The `start` and `end` fields will refer to it instead of the entire range when that happens. The `fields` object is unchanged and still contains `null` for invalid fields. Closes: #50
When a value doesn't match the expected regex, it still has a clear value with start and end indexes. BREAKING CHANGE: The result's `details` may now include a non-null `value` even when it's invalid. The `start` and `end` fields will refer to it instead of the entire range when that happens. The `fields` object is unchanged and still contains `null` for invalid fields. Closes: #50
At least on Swiss driving license
The text was updated successfully, but these errors were encountered: