From 14e608bf43e25113e37d1e0afedb137be6214f05 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 5 Sep 2018 16:13:35 +0100 Subject: [PATCH] refactor: tiny change on filename escape pattern --- lib/builder/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index d531c22026..5eef0201fb 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -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(