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

zeroPad string provider #9

Open
DavidUnderdown opened this issue May 20, 2016 · 1 comment
Open

zeroPad string provider #9

DavidUnderdown opened this issue May 20, 2016 · 1 comment
Milestone

Comments

@DavidUnderdown
Copy link
Contributor

For 1.2 - see digital-preservation/csv-validator#122

@DavidUnderdown DavidUnderdown added this to the 1.2 milestone May 20, 2016
@DavidUnderdown
Copy link
Contributor Author

A corollary to this is that neither positiveInteger nor range currently reject values that are (unexpectedly) zero-padded (this is due to the fact that the EBNF allows 0 at any position). That behaviour can be emulated by adding regex("^[^0]") (a slightly more complex regex would be required if 0 itself were an allowed value)

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

No branches or pull requests

1 participant