Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMayfield committed Aug 30, 2024
2 parents 2f67dfc + 318bd11 commit bacafd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/text2tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MAX_LOOP, NODETYPES, OP, textEditor, textError } from './common';
*/
export function text2tree() {
let code = textEditor?.getValue();
code = code.replace(/\t/g, " ");
code = code.replace(/\t/g, " "); // replace tabs with 4 spaces
code = code.replace(/\r/g, ""); // remove any carriage returns
let lexer = new Lexer(code);
let ir;
let tokens = lexer.lex();
Expand Down

0 comments on commit bacafd6

Please sign in to comment.