fix(isMobilePhone): fix 'ms-MY' matching invalid numbers by pano9000 · Pull Request #2155 · validatorjs/validator.js
WikiRik previously approved these changes Jan 23, 2023
rubiin previously approved these changes Jan 24, 2023
refactored the regexp:
---
* removed meaningless {1} quantifiers
* simplified regexp a bit (removing useless escape character)
* fixed the bug that would cause it to match invalid numbers
tests
---
* added tests for invalid numbers
fixes validatorjs#1066
rubiin
removed
the
mc-to-land
label
Jan 29, 2023This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters