Skip to content

Commit

Permalink
Merge pull request #3 from mathiasbynens/plus
Browse files Browse the repository at this point in the history
Support `undefined` `max` values for quantifier nodes
  • Loading branch information
bnjmnt4n committed Aug 24, 2014
2 parents d5c35a5 + 8301d25 commit 473a425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regjsgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
return;
}

throw Error('Invalid node type: ' + type);
throw Error('Invalid node type: ' + type);
}

/*--------------------------------------------------------------------------*/
Expand Down Expand Up @@ -278,6 +278,7 @@
max = node.max;

switch (max) {
case undefined:
case null:
switch (min) {
case 0:
Expand Down

0 comments on commit 473a425

Please sign in to comment.