web3-utils
Advanced tools
Comparing version 1.0.0-beta.21 to 1.0.0-beta.22
{ | ||
"name": "web3-utils", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.21", | ||
"version": "1.0.0-beta.22", | ||
"description": "Collection of utility functions used in web3.js.", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-utils", |
@@ -350,3 +350,3 @@ /* | ||
var isHex = function (hex) { | ||
return ((_.isString(hex) || _.isNumber(hex)) && /^(-)?0x[0-9a-f]+$/i.test(hex)); | ||
return ((_.isString(hex) || _.isNumber(hex)) && /^(-)?0x[0-9a-f]*$/i.test(hex)); | ||
}; | ||
@@ -353,0 +353,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package