Skip to content

added number.multiple()#538

Merged
Marsup merged 4 commits intohapijs:masterfrom
johnbrett:master
Feb 4, 2015
Merged

added number.multiple()#538
Marsup merged 4 commits intohapijs:masterfrom
johnbrett:master

Conversation

@johnbrett
Copy link
Contributor

This pull request adds the number.multiple() validation option as mentioned in this issue: #532.

(I saw this tagged under new contributors on http://hapijs.com/contribute)

lib/number.js Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not a simple string, this has to be defined in language.

@johnbrett
Copy link
Contributor Author

Thanks for the feedback on the PR @Marsup!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we keep this alpha sorted ?

@johnbrett
Copy link
Contributor Author

Hi @Marsup, would you prefer that multiple is moved above negative, or that I reorder the number object fully? I'm not sure I understand the ordering, e.g. base, min, max, less, greater .. does the sorting begin after float?

Thanks again for feedback also.

@Marsup
Copy link
Collaborator

Marsup commented Feb 3, 2015

Sorry I thought it was already the case, ignore that then.

@johnbrett
Copy link
Contributor Author

No worries, anything else needed to be merged?

@Marsup Marsup added the feature New functionality or improvement label Feb 3, 2015
@Marsup Marsup self-assigned this Feb 3, 2015
lib/number.js Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

Space after if.

@Marsup
Copy link
Collaborator

Marsup commented Feb 3, 2015

I'll merge after those last 2.

@Marsup Marsup added this to the 6.0 milestone Feb 3, 2015
Marsup added a commit that referenced this pull request Feb 4, 2015
@Marsup Marsup merged commit 5ae6c48 into hapijs:master Feb 4, 2015
@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