We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Have available all possible regex modifier - e.g. global, multiline, ... currently all are ignored except 'i'. https://github.com/hapijs/joi/blob/master/lib/types/string/index.js#L119
The schema below (if I got it right) should match base64 encoded string with fixed line-length also - multiline modifier is used.
const schema = Joi.string().regex(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/m;)
The text was updated successfully, but these errors were encountered:
Allow all flags in regexp except global and sticky. Fixes #1429.
da3c6b8
I disagree on the global flag for the index problem but agreed this should have been allowed a long time ago. No ETA on v14 yet.
Sorry, something went wrong.
96d02a3
Marsup
No branches or pull requests
Context
What are you trying to achieve or the steps to reproduce ?
Have available all possible regex modifier - e.g. global, multiline, ... currently all are ignored except 'i'.
https://github.com/hapijs/joi/blob/master/lib/types/string/index.js#L119
Example
The schema below (if I got it right) should match base64 encoded string with fixed line-length also - multiline modifier is used.
The text was updated successfully, but these errors were encountered: