Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Jun 27, 2022
1 parent 1a93b42 commit 5b94203
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
},

rules: {
'indent': ['warn', 2],
'indent': ['warn', 2, { "SwitchCase": 1 }],
"space-infix-ops": ["warn", { "int32Hint": false }],

"no-cond-assign": ["off"],
Expand Down
10 changes: 5 additions & 5 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,11 +981,11 @@
// ControlEscape
var codePoint = 0;
switch (res[0]) {
case 't': codePoint = 0x009; break;
case 'n': codePoint = 0x00A; break;
case 'v': codePoint = 0x00B; break;
case 'f': codePoint = 0x00C; break;
case 'r': codePoint = 0x00D; break;
case 't': codePoint = 0x009; break;
case 'n': codePoint = 0x00A; break;
case 'v': codePoint = 0x00B; break;
case 'f': codePoint = 0x00C; break;
case 'r': codePoint = 0x00D; break;
}
return createEscaped('singleEscape', codePoint, '\\' + res[0]);
} else if (res = matchReg(/^c([a-zA-Z])/)) {
Expand Down

0 comments on commit 5b94203

Please sign in to comment.