Error on en setting

This commit is contained in:
cutls 2019-11-12 00:55:21 +09:00
parent 5c5c57739a
commit 6a11099b50

View File

@ -57,7 +57,7 @@ function main(ver, basefile) {
refKey.push(key); refKey.push(key);
let str = target[key]; let str = target[key];
if (pages[i] == "setting.vue.js") { if (pages[i] == "setting.vue.js") {
str = str.replace(/"/g, '\\"'); str = str.replace(/'/g, '\\');
} }
var regExp = new RegExp("@@" + key + "@@", "g"); var regExp = new RegExp("@@" + key + "@@", "g");
source = source.replace(regExp, str); source = source.replace(regExp, str);
@ -72,7 +72,7 @@ function main(ver, basefile) {
} }
if (pages[i] == "setting.vue.js") { if (pages[i] == "setting.vue.js") {
if (str) { if (str) {
str = str.replace(/"/g, '\\"'); str = str.replace(/'/g, '\\');
} }
} }
var regExp = new RegExp("@@" + tarKey + "@@", "g"); var regExp = new RegExp("@@" + tarKey + "@@", "g");