Skip to content

Commit 7e21409

Browse files
Kiliandecavlapo
authored andcommitted
docs: add missing doc for IsPort (#442)
1 parent 077ccf9 commit 7e21409

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ validator.isVariableWidth(str); // Checks if the string contains variable-width
832832
validator.isHexColor(str); // Checks if the string is a hexadecimal color.
833833
validator.isHexadecimal(str); // Checks if the string is a hexadecimal number.
834834
validator.isIP(str, version); // Checks if the string is an IP (version 4 or 6).
835+
validator.isPort(str); // Check if the string is a valid port number.
835836
validator.isISBN(str, version); // Checks if the string is an ISBN (version 10 or 13).
836837
validator.isISIN(str); // Checks if the string is an ISIN (stock/security identifier).
837838
validator.isISO8601(str); // Checks if the string is a valid ISO 8601 date.
@@ -923,6 +924,7 @@ validator.isInstance(value, target); // Checks value is an instance of the targe
923924
| `@IsHexColor()` | Checks if the string is a hexadecimal color. |
924925
| `@IsHexadecimal()` | Checks if the string is a hexadecimal number. |
925926
| `@IsIP(version?: "4"\|"6")` | Checks if the string is an IP (version 4 or 6). |
927+
| `@IsPort()` | Check if the string is a valid port number. |
926928
| `@IsISBN(version?: "10"\|"13")` | Checks if the string is an ISBN (version 10 or 13). |
927929
| `@IsISIN()` | Checks if the string is an ISIN (stock/security identifier). |
928930
| `@IsISO8601()` | Checks if the string is a valid ISO 8601 date. |

0 commit comments

Comments
 (0)