Fix unexpected token \t in JSON

This commit is contained in:
surunzi
2018-09-02 01:37:22 +08:00
parent 38bdad0a64
commit ba1453fa1b
4 changed files with 297 additions and 288 deletions

View File

@@ -4,5 +4,7 @@
_('escapeJsStr')
function exports(str) {
return escapeJsStr(str).replace(/\\'/g, "'")
return escapeJsStr(str)
.replace(/\\'/g, "'")
.replace(/\t/g, '\\t')
}