                 let range = NSMakeRange(0, path.characters.count)
                 guard let keyRegex = namedCaptureRegex else {
                     Log.error("RouteRegex has invalid state: missing keyRegex")
-                    return(nil,nil)
+                    return (regexStr, keys, nonKeyIndex, false)
                 }
                 guard let nonKeyRegex = unnamedCaptureRegex else {
                     Log.error("RouteRegex element has invalid state: missing nonKeyRegex")
-                    return(nil,nil)
+                    return (regexStr, keys, nonKeyIndex, false)
                 }
                 if let keyMatch = keyRegex.firstMatch(in: path, options: [], range: range) {
                     // We found a path element with a named/key capture

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

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

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