Skip to content

added support for string.uri relativeOnly option#1034

Merged
Marsup merged 2 commits intohapijs:masterfrom
lamchakchan:string_allowRelativeOnly_support
Nov 14, 2016
Merged

added support for string.uri relativeOnly option#1034
Marsup merged 2 commits intohapijs:masterfrom
lamchakchan:string_allowRelativeOnly_support

Conversation

@lamchakchan
Copy link
Contributor

Added relativeOnly option flag support for string.uri()

This is in reference to #1015

lib/language.js Outdated
},
email: 'must be a valid email',
uri: 'must be a valid uri',
uriRelativeOnly: 'must be a relative only uri',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be a valid relative uri sounds more english.

@lamchakchan
Copy link
Contributor Author

Thanks for the quick response.

Made the changes for a better error message.

@Marsup Marsup added this to the 10.0.0 milestone Nov 14, 2016
@Marsup Marsup added the feature New functionality or improvement label Nov 14, 2016
@Marsup Marsup self-assigned this Nov 14, 2016
@Marsup
Copy link
Collaborator

Marsup commented Nov 14, 2016

Thanks !

@Marsup Marsup merged commit e657a5a into hapijs:master Nov 14, 2016
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants