-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Optional string regex-based rule throws if key is missing #127
Labels
bug
Bug or defect
Comments
Is it sufficient just to check if value is undefined on this line? https://github.com/spumko/joi/blob/master/lib/types/string.js#L123 if (typeof(value) === 'undefined') { return null; } It does fix the test. |
Sounds good. PR? |
updated pull request |
hueniverse
pushed a commit
that referenced
this issue
Oct 2, 2013
Fixes #127: Optional string regex-based rule throws if key is missing
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See hapijs/hapi#1078
The text was updated successfully, but these errors were encountered: