Fix typo in comment

redux
Jakub Vrana 11 years ago
parent 798ed6a8a4
commit 62d151cb5a

@ -685,9 +685,9 @@ module.exports = function(ast, options) {
* return, line separator, paragraph separator, and line feed. Any character * return, line separator, paragraph separator, and line feed. Any character
* may appear in the form of an escape sequence. * may appear in the form of an escape sequence.
* *
* For portability, we also escape escape all control and non-ASCII * For portability, we also escape all control and non-ASCII characters.
* characters. Note that "\0" and "\v" escape sequences are not used because * Note that "\0" and "\v" escape sequences are not used because JSHint does
* JSHint does not like the first and IE the second. * not like the first and IE the second.
*/ */
' return s', ' return s',
' .replace(/\\\\/g, \'\\\\\\\\\')', // backslash ' .replace(/\\\\/g, \'\\\\\\\\\')', // backslash

@ -162,9 +162,9 @@ var utils = {
* return, line separator, paragraph separator, and line feed. Any character * return, line separator, paragraph separator, and line feed. Any character
* may appear in the form of an escape sequence. * may appear in the form of an escape sequence.
* *
* For portability, we also escape escape all control and non-ASCII * For portability, we also escape all control and non-ASCII characters.
* characters. Note that "\0" and "\v" escape sequences are not used because * Note that "\0" and "\v" escape sequences are not used because JSHint does
* JSHint does not like the first and IE the second. * not like the first and IE the second.
*/ */
return '"' + s return '"' + s
.replace(/\\/g, '\\\\') // backslash .replace(/\\/g, '\\\\') // backslash
@ -186,8 +186,7 @@ var utils = {
/* /*
* Based on ECMA-262, 5th ed., 7.8.5 & 15.10.1. * Based on ECMA-262, 5th ed., 7.8.5 & 15.10.1.
* *
* For portability, we also escape escape all control and non-ASCII * For portability, we also escape all control and non-ASCII characters.
* characters.
*/ */
return s return s
.replace(/\\/g, '\\\\') // backslash .replace(/\\/g, '\\\\') // backslash

Loading…
Cancel
Save