mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Fix unexpected token \t in JSON
This commit is contained in:
@@ -4,5 +4,7 @@
|
||||
_('escapeJsStr')
|
||||
|
||||
function exports(str) {
|
||||
return escapeJsStr(str).replace(/\\'/g, "'")
|
||||
return escapeJsStr(str)
|
||||
.replace(/\\'/g, "'")
|
||||
.replace(/\t/g, '\\t')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user