From fcc6daf78b9a97cecd7c42af8511f180c5b0255f Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Mon, 14 Mar 2016 21:33:14 +0100 Subject: Fix PHP and JS codegen to not escape single quotes in strings anymore. --- compiler/jsgen.nim | 1 - 1 file changed, 1 deletion(-) 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("\"") -- cgit 1.4.1-2-gfad0