feat(isMobilePhone): add en-TO mobile phone validation#2714
Closed
superfortune-passion wants to merge 73 commits into
Closed
feat(isMobilePhone): add en-TO mobile phone validation#2714superfortune-passion wants to merge 73 commits into
superfortune-passion wants to merge 73 commits into
Conversation
…ne numbers (validatorjs#2350) Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
…lidatorjs#2474) Co-authored-by: Falk Schieber <12937991+pixelbucket-dev@users.noreply.github.com> Co-authored-by: Vatsal <bevatsal1122@gmail.com>
Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
…2362) Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
…idatorjs#2494) * enhance isEmail to have regexp for host_whitelist * update README.md * refactor code * update test name * fix code logic for checkHost --------- Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
…er (validatorjs#2500) * feat: Validation for macedonian phone number added * fix:refined regex for all mk numbers
* feat: isISO15924 * test: isISO15924 * docs: add isISO15924 to README * refactor(isISO15924): update data sources * refactor(isISO15924): update data source reference * chore: fix linting
* refactor: allow for splitting tests to different files * feat(isAfter): allow usage of options object * style: make options italic * refactor: rename test file extension to .test.js * refactor: rename test-functions to testFunctions * refactor: implement suggestion from validatorjs#2019 review * refactor: remove custom repeat to use native function * refactor: implement suggestion new Date * Refactor isIP with options API * Move and fix tests * Add more tests * Fix README * Fix broken isIPRange * refactor: change test files to prepare for validatorjs#1874 * Maintain legacy syntax * Revert "Fix broken isIPRange" This reverts commit cf9ebc7. * Improve naming * Fix comment text * Reinstate test for isAlpha --------- Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
- Regex now covers both of the following patterns: - Old pattern of: 2 letters, followed by 6 digits - New pattern of: 1 letter, 6 digits, 2 letters
add padding to the option list update regexes to support validation with/without padding update default options to keep the changes backward compatible add new test to cover different scenarios
Co-authored-by: rajput-balram <balrams@nurseio.com> Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
* refactor: allow for splitting tests to different files * feat(isAfter): allow usage of options object * style: make options italic * refactor: rename test file extension to .test.js * refactor: rename test-functions to testFunctions * refactor: implement suggestion from validatorjs#2019 review * refactor: remove custom repeat to use native function * refactor: implement suggestion new Date * Refactor isBefore with options API * Refactor isBefore tests * Refactor to simplify logic * Update README * Refactor logic * Improve README formatting * Fix backwards-compat * Remove redundant string assertion * Fix comment * Reinstate legacy tests * Change arg name according to code review * Add line break according to code review * Revert change of simplifying toDate * Fix whitespace issues * Fix test * Fix tests * Format file for consistency with isBefore * Remove redundant file * Remove old tests * Add tests for undefined args * Remove arguments: linter error * Improve comment * Use recommended variable name * Improve readme text according to code review * Make isAfter arguments more robust * Split test cases into given and default end date --------- Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
* 🐛 fix: Cyprus mobile phone validation * 🧪 chore: update unit tests
…datorjs#2372) * refactor: Refactor assertString * refactor: Refactor assertString with unit tests * add: Empty string unit test * add: Null input value and more tests * fix: Sentence correction
* fix validatorjs#2039 * remove line and add test to isIp.test.js * change isIp --------- Co-authored-by: shreysinha25 <shrey.sinha@skyvoyage.in> Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
Also updates typo in package.json Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
* ci: update workflows * Add reference to CODECOV_TOKEN * Remove unnecessary whitespace --------- Co-authored-by: Rik Smale <git@riksmale.info>
* Add validation, tests for postal code locale PK Reference for valid list of postal codes: https://www.pakpost.gov.pk/postcodes.php * Fix: missing trailing comma results in failed tests * Move reference link for valid postal code list * Fix: missing comma in README.md
Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
Co-authored-by: Danial <soheili@payping.io>
…rjs#2633) * fix(isURL): handle possible bypass with URL-encoded content * style: fix indentation
…rjs#2663) * feat(isISO31661Alpha2/3): Add options to both validators to accept user assigned codes" * feat(isISO31661Alpha2/3): Add tests
…datorjs#2661) Co-authored-by: Rubin Bhandari <roobin.bhandari@gmail.com>
* Add postal code pattern for Monaco https://en.wikipedia.org/wiki/Postal_codes_in_France#Monaco * Update README.md * Add Monaco locale test cases for validators
Co-authored-by: Rik Smale <git@riksmale.info>
* ci: Add Node.js 24 version in CI workflow * Update .github/workflows/ci.yml Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com> --------- Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
…one validation (validatorjs#2701) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
7570197 to
c0aec60
Compare
c0aec60 to
4fd1148
Compare
This 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Tonga (en-TO) mobile phone validation support.