Updates regex.txt definition

This commit is contained in:
Nemo 2020-03-13 16:44:29 +05:30
parent f24d67d914
commit d58c04274b
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# india-pincode-regex ![Packagist Version](https://img.shields.io/packagist/v/captn3m0/pincode?style=plastic) [![Build Status](https://travis-ci.org/captn3m0/india-pincode-regex.svg?branch=master)](https://travis-ci.org/captn3m0/india-pincode-regex) ![npm](https://img.shields.io/npm/v/pincode-validator?style=plastic) ![GitHub package.json version](https://img.shields.io/github/package-json/v/captn3m0/india-pincode-regex?style=plastic) ![GitHub](https://img.shields.io/github/license/captn3m0/india-pincode-regex?style=plastic)
Validate a [Postal Index Number][wiki] for India with a regex. The regexes are available in `regex.txt`. There are 2 regexes. The first validates PINs starting from 1-4, and the second validates the ones starting from 5-8. The reason for the split is to keep the regex size small. Currently they are both at 16K each.
Validate a [Postal Index Number][wiki] for India with a few regexes. The regexes are available in `regex.txt`. There is one regex per area code (the first digit of the PIN, which goes from 1-8).
## Source
@ -41,4 +41,4 @@ P.validate('110011'); // returns true
Licensed under the [MIT License](https://nemo.mit-license.org/). See LICENSE file for details.
[wiki]: https://en.wikipedia.org/wiki/Postal_Index_Number
[wiki]: https://en.wikipedia.org/wiki/Postal_Index_Number