Skip to content

Commit

Permalink
Add to docs for isISSN().
Browse files Browse the repository at this point in the history
  • Loading branch information
hkwu committed Oct 14, 2016
1 parent 97b4ecf commit 1751be3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -78,7 +78,7 @@ Passing anything other than a string is an error.
- **isHexadecimal(str)** - check if the string is a hexadecimal number.
- **isIP(str [, version])** - check if the string is an IP (version 4 or 6).
- **isISBN(str [, version])** - check if the string is an ISBN (version 10 or 13).
- **isISSN(str [, options])** - check if the string is an [ISSN](https://en.wikipedia.org/wiki/International_Standard_Serial_Number). `options` is an object which defaults to `{ case_sensitive: false, require_hyphen: false }`.
- **isISSN(str [, options])** - check if the string is an [ISSN](https://en.wikipedia.org/wiki/International_Standard_Serial_Number). `options` is an object which defaults to `{ case_sensitive: false, require_hyphen: false }`. If `case_sensitive` is true, ISSNs with a lowercase `'x'` as the check digit are rejected.
- **isISIN(str)** - check if the string is an [ISIN][ISIN] (stock/security identifier).
- **isISO8601(str)** - check if the string is a valid [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date.
- **isIn(str, values)** - check if the string is in a array of allowed values.
Expand Down
1 change: 0 additions & 1 deletion test/validators.js
Expand Up @@ -1861,7 +1861,6 @@ describe('Validators', function () {
'2434-561x',
'01896016',
'20905076',

],
invalid: [
'0378-5954',
Expand Down

0 comments on commit 1751be3

Please sign in to comment.