                     }
                     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 {

        }
        
        for path in paths {
            // If there was a leading slash, there will be an empty component in the split
            if  path.isEmpty {
                continue
            }
            
            var matched = false
            var prefix = ""
            var matchExp = "[^/]+?"
            var plusQuestStar = ""
            
            if  path == "*" {
                // Handle a path element of * specially
                matchExp = ".*"

                // A path element with no capture
                regexStr.append("/\(path)")
            }

            return (regexStr, keys, nonKeyIndex, true)
    }
}
