diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-10-20 10:35:44 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-10-20 10:35:44 +0800 |
commit | aa4746f4c723857710d61482a73960d863a8a098 (patch) | |
tree | baa060a4c3969225482dd2e0df2707292186525b /ui/app | |
parent | ac7dca22c3a630d4623e44abe1e86d1cc51f3acc (diff) | |
download | tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar.gz tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar.bz2 tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar.lz tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar.xz tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.tar.zst tangerine-wallet-browser-aa4746f4c723857710d61482a73960d863a8a098.zip |
Add test and ability for isHex to handle hex strings with hex-prefix
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js index facaef3ee..a519ab5b4 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -212,6 +212,7 @@ function readableDate (ms) { } function isHex (str) { + if (str.startsWith('0x')) str = str.replace('0x', '') if (str.match(/[g-zG-Z]/) || str.match(/\W/)) return false return true } |