diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-03-14 21:44:09 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-03-14 21:44:09 +0100 |
commit | 6eb7e6cbed1c82037c6d81cf7c83a5574b41576c (patch) | |
tree | c9cb053ec9edd89afdb3d3f800dd788a25e30497 | |
parent | 1073f9ec5a122b9cb66bac1dfe341583e804af89 (diff) | |
parent | fcc6daf78b9a97cecd7c42af8511f180c5b0255f (diff) | |
download | Nim-6eb7e6cbed1c82037c6d81cf7c83a5574b41576c.tar.gz |
Merge pull request #3965 from oderwat/hara-php-fix-singlequote
Fix PHP and JS codegen to not escape single quotes in strings anymore.
-rw-r--r-- | compiler/jsgen.nim | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index abe86af7b..2da7db900 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -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("\"") |