From f1cb6743891ffd3f38ca0bf6a0c94210e7730361 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 9 Jan 2014 22:41:30 -0500 Subject: Only escape ESCAPED_CHARS. Leave all other chars prefaced by a backslash alone. Fixes #242. Not sure why I thought that I needed to add another backslash. Thanks for the report and the test case @mhubig. --- tests/misc/escaped_chars_in_js.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/misc/escaped_chars_in_js.txt (limited to 'tests/misc/escaped_chars_in_js.txt') diff --git a/tests/misc/escaped_chars_in_js.txt b/tests/misc/escaped_chars_in_js.txt new file mode 100644 index 0000000..ca917c8 --- /dev/null +++ b/tests/misc/escaped_chars_in_js.txt @@ -0,0 +1,12 @@ +[javascript protected email address] + -- cgit v1.2.3