                     }
                     keys.append(path.bridge().substring(with: keyMatch.range(at: 2)))
                     matched = true
-                } else if  let nonKeyMatch = nonKeyRegex.firstMatch(in: path, options: [], range: range) {
+                } else if let nonKeyMatch = nonKeyRegex.firstMatch(in: path, options: [], range: range) {
                     // We found a path element with an unnamed capture
                     let prefixRange = nonKeyMatch.range(at: 1)
                     if  prefixRange.location != NSNotFound  &&  prefixRange.location != -1 {

        }
        var pattern = fromPattern
        var regexStr = "^"
        var keys: [String] = []
        var nonKeyIndex = 0
        
        if allowPartialMatch && pattern.hasSuffix("*") {

                    matched = true
                }
            }

            if  matched  {
                // We have some kind of capture for this path element
                // Build the runtime regex depending on whether or not there is "repetition"
