Skip to content

Commit

Permalink
Exclude commas from permitted modifier characters in roll formula par…
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Jan 23, 2023
1 parent 1e20308 commit 723b908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roll-grammar.peggy
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ FlavoredNumber = number:Number flavor:Flavor {

Identifier = $([a-z$_]i [a-z$_0-9]i*);

Modifiers = [^ (){}\[\]+\-*/]+ {
Modifiers = [^ (){}\[\]+\-*/,]+ {
return Array.from(text().matchAll(/([A-z]+)([^A-z\s()+\-*\/]+)?/g)).map((m) => m[0]);
};

Expand Down

0 comments on commit 723b908

Please sign in to comment.