Initial commit
This commit is contained in:
6
node_modules/validator/es/lib/isHexadecimal.js
generated
vendored
Normal file
6
node_modules/validator/es/lib/isHexadecimal.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import assertString from './util/assertString';
|
||||
var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
|
||||
export default function isHexadecimal(str) {
|
||||
assertString(str);
|
||||
return hexadecimal.test(str);
|
||||
}
|
||||
Reference in New Issue
Block a user