diff --git a/lib/compiler/passes/generate-javascript.js b/lib/compiler/passes/generate-javascript.js index da54462..19c66b6 100644 --- a/lib/compiler/passes/generate-javascript.js +++ b/lib/compiler/passes/generate-javascript.js @@ -685,9 +685,9 @@ module.exports = function(ast, options) { * return, line separator, paragraph separator, and line feed. Any character * may appear in the form of an escape sequence. * - * For portability, we also escape escape all control and non-ASCII - * characters. Note that "\0" and "\v" escape sequences are not used because - * JSHint does not like the first and IE the second. + * For portability, we also escape all control and non-ASCII characters. + * Note that "\0" and "\v" escape sequences are not used because JSHint does + * not like the first and IE the second. */ ' return s', ' .replace(/\\\\/g, \'\\\\\\\\\')', // backslash diff --git a/lib/utils.js b/lib/utils.js index ed08fc0..8ca3ce1 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -162,9 +162,9 @@ var utils = { * return, line separator, paragraph separator, and line feed. Any character * may appear in the form of an escape sequence. * - * For portability, we also escape escape all control and non-ASCII - * characters. Note that "\0" and "\v" escape sequences are not used because - * JSHint does not like the first and IE the second. + * For portability, we also escape all control and non-ASCII characters. + * Note that "\0" and "\v" escape sequences are not used because JSHint does + * not like the first and IE the second. */ return '"' + s .replace(/\\/g, '\\\\') // backslash @@ -186,8 +186,7 @@ var utils = { /* * Based on ECMA-262, 5th ed., 7.8.5 & 15.10.1. * - * For portability, we also escape escape all control and non-ASCII - * characters. + * For portability, we also escape all control and non-ASCII characters. */ return s .replace(/\\/g, '\\\\') // backslash