Error on en setting
This commit is contained in:
parent
5c5c57739a
commit
6a11099b50
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user