Simplifying path regex

This commit is contained in:
Karel Bilek 2016-02-14 16:25:55 +01:00
parent 6a74eb6993
commit 3c56e80fc6

View file

@ -28,7 +28,7 @@ function UInt53 (value) {
function Bip32Path (value) {
return typeforce.String(value) &&
value.match(/^([m]\/)?([0-9]+[']?\/)*([0-9]+[']?)$/)
value.match(/^(m\/)?(\d+'?\/)*\d+'?$/)
}
// external dependent types