Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(isTaxID): Add EU-UK TIN validation #1446

Merged
merged 42 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
bd2916b
feat(isTaxID): Added de-AT locale
Aug 25, 2020
c1f94b2
test(isTaxID): Added unit tests for de-AT TINs
Aug 25, 2020
fc8415f
feat(isTaxID): Added el-GR locale
Aug 25, 2020
aafde10
feat(isTaxID): Added en-GB locale
Aug 25, 2020
902dfed
fix(isTaxID): Sanitize TINs before validity testing
Aug 26, 2020
1ff1df1
feat(isTaxID): Added fr/nl-BE locales
Aug 26, 2020
8e479d2
refactor(isTaxID): Added locale aliases
Aug 27, 2020
da20851
feat(isTaxID): Added fr-FR locale
Aug 27, 2020
6f39782
feat(isTaxID): Added el-CY locale
Aug 27, 2020
77cf993
feat(isTaxID): Added hu-HU locale
Aug 27, 2020
11cb416
refactor(isTaxID): Prepare to support more sanitization regexes
Aug 27, 2020
ab924d8
feat(isTaxID): Add de-DE locale
Aug 29, 2020
59ddf52
feat(isTaxID): Add hr-HR locale
Aug 29, 2020
237a46f
feat(isTaxID): Add bg-BG locale
Aug 29, 2020
cdf0ade
feat(isTaxID): Add cs-CZ locale
Sep 3, 2020
afb51a9
fix(isTaxID): Add el-GR first digit validation
Sep 3, 2020
110b24b
feat(isTaxID): Add sk-SK locale
Sep 3, 2020
6c83200
feat(isTaxID): Add dk-DK locale
Sep 3, 2020
2b3068f
feat(isTaxID): Add et-EE locale
Sep 4, 2020
f06637c
feat(isTaxID): Add lt-LT locale
Sep 4, 2020
84b306f
feat(isTaxID): Add fi-FI locale
Sep 10, 2020
fa9dfd6
feat(isTaxID): Add it-IT locale
Sep 15, 2020
6e5ddf6
feat(isTaxID): Add en-IE locale
Sep 15, 2020
606219a
feat(isTaxID): Add lv-LV locale
Sep 16, 2020
66d1021
refactor(isTaxID): Remove unneeded parseInt() calls
Sep 16, 2020
77e67c5
refactor(isTaxID): Add Luhn validation function
Sep 16, 2020
d4ac410
refactor(isTaxID): Add reverse multiplication function
Sep 16, 2020
e786cc6
feat(isTaxID): Add sv-SE locale
Sep 17, 2020
9142f5b
feat(isTaxID): Add nl-NL locale
Sep 17, 2020
f6ab3b2
feat(isTaxID): Add pt-PT locale
Sep 17, 2020
72c6848
feat(isTaxID): Add sl-SI locale
Sep 17, 2020
ad0e872
feat(isTaxID): Add es-ES locale
Sep 17, 2020
34b3f7b
feat(isTaxID): Add ro-RO locale
Sep 17, 2020
592ebc5
feat(isTaxID): Add mt-MT locale
Sep 17, 2020
85e8185
feat(isTaxID): Add pl-PL locale
Sep 17, 2020
01ea521
refactor(isTaxID): Add any case support
Sep 17, 2020
4b091a0
chore(isTaxID): Add Verhoeff validation function
Sep 17, 2020
c231074
feat(isTaxID): Add fr/lb-LU locale
Sep 17, 2020
229a15d
docs(README): Update isTaxID() description
Sep 17, 2020
b725ca3
remove(isTaxID): Remove codice catastale validation
Oct 19, 2020
2df2d18
refactor(isTaxID): Move helper validation algorithms
Oct 21, 2020
bc9ef38
Merge branch 'master' into refactor-isTaxID
tplessas Nov 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Validator | Description
**isUppercase(str)** | check if the string is uppercase.
**isSlug** | Check if the string is of type slug. `Options` allow a single hyphen between string. e.g. [`cn-cn`, `cn-c-c`]
**isStrongPassword(str [, options])** | Check if a password is strong or not. Allows for custom requirements or scoring rules. If `returnScore` is true, then the function returns an integer score for the password rather than a boolean.<br/>Default options: <br/>`{ minLength: 8, minLowercase: 1, minUppercase: 1, minNumbers: 1, minSymbols: 1, returnScore: false, pointsPerUnique: 1, pointsPerRepeat: 0.5, pointsForContainingLower: 10, pointsForContainingUpper: 10, pointsForContainingNumber: 10, pointsForContainingSymbol: 10 }`
**isTaxID(str, locale)** | Check if the given value is a valid Tax Identification Number. Default locale is `en-US`
**isTaxID(str, locale)** | Check if the given value is a valid Tax Identification Number. Default locale is `en-US`.<br/><br/>More info about exact TIN support can be found in `src/lib/isTaxID.js`<br/><br/>Supported locales: `[ 'bg-BG', 'cs-CZ', 'de-AT', 'de-DE', 'dk-DK', 'el-CY', 'el-GR', 'en-GB', 'en-IE', 'en-US', 'es-ES', 'et-EE', 'fi-FI', 'fr-BE', 'fr-FR', 'fr-LU', 'hr-HR', 'hu-HU', 'it-IT', 'lb-LU', 'lt-LT', 'lv-LV' 'mt-MT', 'nl-BE', 'nl-NL', 'pl-PL', 'pt-PT', 'ro-RO', 'sk-SK', 'sl-SI', 'sv-SE' ]`
**isURL(str [, options])** | check if the string is an URL.<br/><br/>`options` is an object which defaults to `{ protocols: ['http','https','ftp'], require_tld: true, require_protocol: false, require_host: true, require_valid_protocol: true, allow_underscores: false, host_whitelist: false, host_blacklist: false, allow_trailing_dot: false, allow_protocol_relative_urls: false, disallow_auth: false }`.<br/><br/>require_protocol - if set as true isURL will return false if protocol is not present in the URL.<br/>require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option.<br/>protocols - valid protocols can be modified with this option.<br/>require_host - if set as false isURL will not check if host is present in the URL.<br/>require_port - if set as true isURL will check if port is present in the URL.<br/>allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed.<br/>validate_length - if set as false isURL will skip string length validation (2083 characters is IE max URL length).
**isUUID(str [, version])** | check if the string is a UUID (version 3, 4 or 5).
**isVariableWidth(str)** | check if the string contains a mixture of full and half-width chars.
Expand Down
Loading