Skip to content

Commit

Permalink
refactor: tiny change on filename escape pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Sep 5, 2018
1 parent 3ca2f02 commit 14e608b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 14e608b

Please sign in to comment.