mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Merge pull request #2992 from David-Mueller/patch-1
fix: escape quotes in page file names
This commit is contained in:
commit
b048c45919
@ -314,7 +314,7 @@ module.exports = class Builder {
|
||||
})).forEach(f => {
|
||||
const key = f.replace(/\.(js|vue)$/, '')
|
||||
if (/\.vue$/.test(f) || !files[key]) {
|
||||
files[key] = f
|
||||
files[key] = f.replace(/(['|"])/g, '\\$1')
|
||||
}
|
||||
})
|
||||
templateVars.router.routes = createRoutes(
|
||||
|
Loading…
Reference in New Issue
Block a user