Simplifying path regex
This commit is contained in:
parent
6a74eb6993
commit
3c56e80fc6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue