You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bd586e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -860,6 +860,7 @@ validator.maxLength(str, max); // Checks if the string's length is not more than
860
860
validator.matches(str, pattern, modifiers); // Checks if string matches the pattern. Either matches('foo', /foo/i) or matches('foo', 'foo', 'i').
861
861
validator.isMilitaryTime(str); // Checks if the string is a valid representation of military time in the format HH:MM.
862
862
validator.isHash(str, algorithm); // Checks if the string is a hash of type algorithm.
863
+
validator.isISSN(str, options); // Checks if the string is a ISSN.
863
864
864
865
// array validation methods
865
866
validator.arrayContains(array, values); // Checks if array contains all values from the given array of values.
@@ -955,6 +956,7 @@ validator.isInstance(value, target); // Checks value is an instance of the targe
955
956
| `@Matches(pattern:RegExp, modifiers?:string)` | Checks if string matches the pattern. Either matches('foo', /foo/i) or matches('foo', 'foo', 'i').
956
957
| `@IsMilitaryTime()` | Checks if the string is a valid representation of military time in the format HH:MM. |
957
958
| `@IsHash(algorithm:string)` | Checks if the string is a hash of type algorithm. <br/><br/>Algorithm is one of `['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']` |
959
+
| `@IsISSN(options?:IsISSNOptions)` | Checks if the string is a ISSN. |
958
960
| **Array validation decorators** |
959
961
| `@ArrayContains(values:any[])` | Checks if array contains all values from the given array of values. |
960
962
| `@ArrayNotContains(values:any[])` | Checks if array does not contain any of the given values. |
0 commit comments