mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
Update content/_code-samples/key-derivation/js/index.js
Co-authored-by: Rome Reginelli <mduo13@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ const { codec, encodeAccountPublic, encodeNodePublic } = require("ripple-address
|
|||||||
const XRPL_SEED_PREFIX = 0x21
|
const XRPL_SEED_PREFIX = 0x21
|
||||||
|
|
||||||
const isHex = function(value) {
|
const isHex = function(value) {
|
||||||
const regex = new RegExp(/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/, 'i')
|
const regex = new RegExp(/^[0-9a-f]+$/, 'i')
|
||||||
return regex.test(value)
|
return regex.test(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user