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