Skip to content

Commit

Permalink
fix: fix literalBool regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikossor committed Jul 26, 2022
1 parent 1c5b210 commit ba94088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/JavaScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const word = regex(/\w+/); // word
const equalSign = string("=");
const bigArrow = string("=>");

const literalBool = regex(/^true|false$/);
const literalBool = regex(/^true$|^false$/);
const literalUndefined = regex(/undefined/);
const literalNull = regex(/null/);
const literalNumber = regex(/^(\d+\.)?\d+$|^0b[0-1]+(n)?$/);
Expand Down

0 comments on commit ba94088

Please sign in to comment.