We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b926e3 commit 1f32f03Copy full SHA for 1f32f03
src/create-matcher.js
@@ -175,15 +175,16 @@ function matchRoute (
175
path: string,
176
params: Object
177
): boolean {
178
- let m
179
try {
180
- m = decodeURI(path).match(regex)
+ path = decodeURI(path)
181
} catch (err) {
182
if (process.env.NODE_ENV !== 'production') {
183
warn(false, `Error decoding "${path}". Leaving it intact.`)
184
}
185
186
+ const m = path.match(regex)
187
+
188
if (!m) {
189
return false
190
} else if (!params) {
0 commit comments