mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
refactor: tiny change on filename escape pattern
This commit is contained in:
parent
3ca2f02674
commit
14e608bf43
@ -270,7 +270,7 @@ export default class Builder {
|
||||
})).forEach((f) => {
|
||||
const key = f.replace(/\.(js|vue)$/, '')
|
||||
if (/\.vue$/.test(f) || !files[key]) {
|
||||
files[key] = f.replace(/(['|"])/g, '\\$1')
|
||||
files[key] = f.replace(/('|")/g, '\\$1')
|
||||
}
|
||||
})
|
||||
templateVars.router.routes = createRoutes(
|
||||
|
Loading…
Reference in New Issue
Block a user