Skip to content

Commit bc46fa8

Browse files
committed
feat(optimized matcher): remove insensitive handling.
It is handled as dynamic route.
1 parent 56e0011 commit bc46fa8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: src/create-matcher.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,7 @@ function optimizedMatcher (
256256

257257
function match (path, params) {
258258
const cleanPath = path.replace(/\/$/, '')
259-
let staticRecord = staticMap[cleanPath]
260-
261-
if (!staticRecord) {
262-
const staticRecordInsensitive = staticMap[cleanPath.toLowerCase()]
263-
if (staticRecordInsensitive && staticRecordInsensitive.route.regex.ignoreCase) {
264-
staticRecord = staticRecordInsensitive
265-
}
266-
}
259+
const staticRecord = staticMap[cleanPath]
267260

268261
for (var i = 0; i < dynamics.length; i++) {
269262
const { index, route } = dynamics[i]

0 commit comments

Comments
 (0)