From 3c56e80fc6d6257597d6bc1c13e4cd0678916a3e Mon Sep 17 00:00:00 2001 From: Karel Bilek Date: Sun, 14 Feb 2016 16:25:55 +0100 Subject: [PATCH] Simplifying path regex --- src/types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.js b/src/types.js index c25eb84..69ab787 100644 --- a/src/types.js +++ b/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