Skip to content

Commit

Permalink
Return char for invalid escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Apr 28, 2023
1 parent 60ceb41 commit bc76e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function lex(s: string): Lexer {
case CharCodes.doubleQuote:
return '"';
default:
return '';
return String.fromCharCode(char);
}
}
}
Expand Down

0 comments on commit bc76e30

Please sign in to comment.