Skip to content

Commit

Permalink
Merge pull request #13 from nicolo-ribaudo/dot-alternative.
Browse files Browse the repository at this point in the history
Allow dot inside alternative.
  • Loading branch information
bnjmnt4n committed Oct 20, 2019
2 parents 3e898bd + 2083b94 commit a93685a
Show file tree
Hide file tree
Showing 2 changed files with 881 additions and 193 deletions.
2 changes: 1 addition & 1 deletion regjsgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
}

function generateTerm(node) {
assertType(node.type, 'anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value');
assertType(node.type, 'anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value|dot');

return generate(node);
}
Expand Down
Loading

0 comments on commit a93685a

Please sign in to comment.