From 62d151cb5ae13fa33e3616505c0160a9aaf8f1ad Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 25 Jul 2013 14:27:50 -0700 Subject: [PATCH] Fix typo in comment --- lib/compiler/passes/generate-javascript.js | 6 +++--- lib/utils.js | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) 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