Initial commit
This commit is contained in:
8
node_modules/validator/es/lib/isPort.js
generated
vendored
Normal file
8
node_modules/validator/es/lib/isPort.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import isInt from './isInt';
|
||||
export default function isPort(str) {
|
||||
return isInt(str, {
|
||||
allow_leading_zeroes: false,
|
||||
min: 0,
|
||||
max: 65535
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user