Browse Source

Simplifying path regex

hk-custom-address
Karel Bilek 9 years ago
parent
commit
3c56e80fc6
  1. 2
      src/types.js

2
src/types.js

@ -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

Loading…
Cancel
Save