Simplifying path regex
This commit is contained in:
parent
6a74eb6993
commit
3c56e80fc6
@ -28,7 +28,7 @@ function UInt53 (value) {
|
|||||||
|
|
||||||
function Bip32Path (value) {
|
function Bip32Path (value) {
|
||||||
return typeforce.String(value) &&
|
return typeforce.String(value) &&
|
||||||
value.match(/^([m]\/)?([0-9]+[']?\/)*([0-9]+[']?)$/)
|
value.match(/^(m\/)?(\d+'?\/)*\d+'?$/)
|
||||||
}
|
}
|
||||||
|
|
||||||
// external dependent types
|
// external dependent types
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user