Commit 8645a4104b55d6f5da7630a10a0a7bb4cb736771

Authored by totoro
1 parent d24bf608

[+] add double quotes in escaped char

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
web/js_tools.anubis
@@ -21,6 +21,7 @@ define List(Word8) @@ -21,6 +21,7 @@ define List(Word8)
21 [h . t] then 21 [h . t] then
22 make_js_string(t, 22 make_js_string(t,
23 if h = '\'' then [ h, '\\' . so_far] //single quote 23 if h = '\'' then [ h, '\\' . so_far] //single quote
  24 + else if h = '\"' then [ h, '\\' . so_far]
24 else if h = '\r' then ['r', '\\' . so_far] //CR 25 else if h = '\r' then ['r', '\\' . so_far] //CR
25 else if h = '\n' then ['n', '\\' . so_far] //LF 26 else if h = '\n' then ['n', '\\' . so_far] //LF
26 else if h = '\t' then ['t', '\\' . so_far] //tab 27 else if h = '\t' then ['t', '\\' . so_far] //tab