File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -832,6 +832,7 @@ validator.isVariableWidth(str); // Checks if the string contains variable-width
832832validator.isHexColor(str); // Checks if the string is a hexadecimal color.
833833validator.isHexadecimal(str); // Checks if the string is a hexadecimal number.
834834validator.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.
835836validator.isISBN(str, version); // Checks if the string is an ISBN (version 10 or 13).
836837validator.isISIN(str); // Checks if the string is an ISIN (stock/security identifier).
837838validator.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. |
You can’t perform that action at this time.
0 commit comments