Skip to content

Commit

Permalink
Fixed returning empty domain after overflow fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed Dec 2, 2016
1 parent 6f7b5cb commit 9d2f0b2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/grammar-registry.js
Expand Up @@ -384,13 +384,8 @@ GrammarRegistry
next.max = endVal;
next.nice = false;
} else {
if (prev.min > startVal) {
next.min = startVal;
}

if (prev.max < endVal) {
next.max = endVal;
}
next.min = (prev.min > startVal ? next.min : prev.min);
next.max = (prev.max < endVal ? next.max : prev.max);
}

return next;
Expand Down

0 comments on commit 9d2f0b2

Please sign in to comment.