escape mistake

This commit is contained in:
cutls 2021-04-01 17:20:56 +09:00
parent 2135f2e4f4
commit 42e5ad4c59

View File

@ -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)