We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56e0011 commit bc46fa8Copy full SHA for bc46fa8
src/create-matcher.js
@@ -256,14 +256,7 @@ function optimizedMatcher (
256
257
function match (path, params) {
258
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
+ const staticRecord = staticMap[cleanPath]
267
268
for (var i = 0; i < dynamics.length; i++) {
269
const { index, route } = dynamics[i]
0 commit comments