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 645780e commit 60ff22cCopy full SHA for 60ff22c
src/create-route-map.js
@@ -144,13 +144,12 @@ function addRouteRecord (
144
})
145
}
146
147
- if (!pathMap[record.path]) {
148
- if (!Object.values(pathMap).some(_record => {
149
- return _record.path !== '*' && record.path.match(_record.regex)
150
- })) {
151
- pathList.push(record.path)
152
- pathMap[record.path] = record
153
- }
+ if (
+ !pathMap[record.path] &&
+ !Object.values(pathMap).some(r => r.path.indexOf('*') === -1 && record.path.match(r.regex))
+ ) {
+ pathList.push(record.path)
+ pathMap[record.path] = record
154
155
156
if (route.alias !== undefined) {
0 commit comments