Skip to content

Commit

Permalink
Fix: exclude \u000d so new line won't convert to text (fixes eslint…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran.Itzhaki committed Jul 27, 2019
1 parent 02d7542 commit 34342a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rule-tester/rule-tester.js
Expand Up @@ -130,7 +130,7 @@ function freezeDeeply(x) {
*/
function sanitize(text) {
return text.replace(
/[\u0000-\u001f]/gu, // eslint-disable-line no-control-regex
/[\u0000-\u0009|\u000b-\u001a]/gu, // eslint-disable-line no-control-regex
c => `\\u${c.codePointAt(0).toString(16).padStart(4, "0")}`
);
}
Expand Down

0 comments on commit 34342a5

Please sign in to comment.