mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
Fix PHP and JS codegen to not escape single quotes in strings anymore.
This commit is contained in:
@@ -211,7 +211,6 @@ proc escapeJSString(s: string): string =
|
||||
of '\e': result.add("\\e")
|
||||
of '\v': result.add("\\v")
|
||||
of '\\': result.add("\\\\")
|
||||
of '\'': result.add("\\'")
|
||||
of '\"': result.add("\\\"")
|
||||
else: add(result, c)
|
||||
result.add("\"")
|
||||
|
||||
Reference in New Issue
Block a user