Skip to content

Commit

Permalink
fix: issue with division expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 18, 2022
1 parent c934872 commit 16fd65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/states/EXPRESSION.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function buildOperatorPattern(isConcise: boolean) {
const binary =
"[*%<&^|?:]" + // Any of these characters can always continue an expression
"|=[=>]" + // We only continue after an equals if it is => or ==
"|/[^*/>]" + // We only continue after a forward slash if it isn't //, /* or />
"|/(?:\\b|\\s)" + // We only continue after a forward slash if it isn't //, /* or />
"|\\.(?=\\s)" + // We only continue after a period if it's followed by a space
"|\\bin(?:stanceof)(?=\\s+[^=/,;:>])"; // We only continue after word operators (instanceof/in) when they are not followed by a terminator
const unary =
Expand Down

0 comments on commit 16fd65a

Please sign in to comment.