@zilliqa-js/util
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -207,3 +207,3 @@ import BN from 'bn.js'; | ||
var isBech32 = function (raw) { | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/); | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$/); | ||
}; | ||
@@ -210,0 +210,0 @@ var isBase58 = function (raw) { |
@@ -211,3 +211,3 @@ (function (global, factory) { | ||
var isBech32 = function (raw) { | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/); | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$/); | ||
}; | ||
@@ -214,0 +214,0 @@ var isBase58 = function (raw) { |
@@ -24,3 +24,3 @@ "use strict"; | ||
exports.isBech32 = function (raw) { | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/); | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$/); | ||
}; | ||
@@ -27,0 +27,0 @@ exports.isBase58 = function (raw) { |
{ | ||
"name": "@zilliqa-js/util", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Utilities for working with Zilliqa.", | ||
@@ -36,3 +36,3 @@ "author": "Ian Tan (https://github.com/iantanwx)", | ||
}, | ||
"gitHead": "a2e8a9462721df0c4e3f5cea65bde66df8285523" | ||
"gitHead": "2c8e5329af545adaad9013aff65d92b38254d90c" | ||
} |
@@ -24,3 +24,3 @@ // This file is part of Zilliqa-Javascript-Library. | ||
export const isBech32 = (raw: string) => { | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/); | ||
return !!raw.match(/^zil1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$/); | ||
}; | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
231767