diff --git a/ui/app/AppLayouts/Wallet/addaccount/panels/DerivationPathInput/Controller.qml b/ui/app/AppLayouts/Wallet/addaccount/panels/DerivationPathInput/Controller.qml index 9b2d7428a6..1153866496 100644 --- a/ui/app/AppLayouts/Wallet/addaccount/panels/DerivationPathInput/Controller.qml +++ b/ui/app/AppLayouts/Wallet/addaccount/panels/DerivationPathInput/Controller.qml @@ -24,7 +24,8 @@ Item { id: d // d flag and named capture groups not supported in Qt 5.15. Use multiple regexes instead - readonly property var derivationPathRegex: /^m\/44[’|']\/?(?:(?.*?)[’|'])?(?.*?)(?:\/(?.*?)[’|']?)?(?:\/(?.*?))?((?:\/.*?)?)$/ + // Captured groups: ? ? ? ? + readonly property var derivationPathRegex: /^m\/44[’|']\/?(?:(.*?)[’|'])?(.*?)(?:\/(.*?)[’|']?)?(?:\/(.*?))?((?:\/.*?)?)$/ // The expected characters before each group. Workaround to missing capture group offsets in Qt 5.15 readonly property var offsets: [6, 0, 2, 2]