We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f4f43 commit 19cf05cCopy full SHA for 19cf05c
src/create-route-map.js
@@ -141,8 +141,8 @@ function compileRouteRegex (path: string): RouteRegExp {
141
if (process.env.NODE_ENV !== 'production') {
142
const keys: any = {}
143
regex.keys.forEach(key => {
144
- warn(!keys[key], `Duplicate param keys in route with path: "${path}"`)
145
- keys[key] = true
+ warn(!keys[key.name], `Duplicate param keys in route with path: "${path}"`)
+ keys[key.name] = true
146
})
147
}
148
return regex
0 commit comments