escape mistake
This commit is contained in:
parent
2135f2e4f4
commit
42e5ad4c59
|
@ -114,7 +114,7 @@ function main(ver, basefile, pwa, store) {
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user