Skip to content

Commit

Permalink
[hotfix][cep] fix typos in cep quantifier error message
Browse files Browse the repository at this point in the history
  • Loading branch information
xueyumusic authored and dawidwys committed Oct 29, 2018
1 parent a13119a commit d0d8bc6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ private static void checkPattern(boolean condition, Object errorMessage) {

public void combinations() {
checkPattern(!hasProperty(QuantifierProperty.SINGLE), "Combinations not applicable to " + this + "!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.STRICT, "You can apply apply either combinations or consecutive, not both!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.STRICT, "You can apply either combinations or consecutive, not both!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.SKIP_TILL_ANY, "Combinations already applied!");

innerConsumingStrategy = ConsumingStrategy.SKIP_TILL_ANY;
}

public void consecutive() {
checkPattern(hasProperty(QuantifierProperty.LOOPING) || hasProperty(QuantifierProperty.TIMES), "Combinations not applicable to " + this + "!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.SKIP_TILL_ANY, "You can apply apply either combinations or consecutive, not both!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.STRICT, "Combinations already applied!");
checkPattern(hasProperty(QuantifierProperty.LOOPING) || hasProperty(QuantifierProperty.TIMES), "Consecutive not applicable to " + this + "!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.SKIP_TILL_ANY, "You can apply either combinations or consecutive, not both!");
checkPattern(innerConsumingStrategy != ConsumingStrategy.STRICT, "Consecutive already applied!");

innerConsumingStrategy = ConsumingStrategy.STRICT;
}
Expand Down

0 comments on commit d0d8bc6

Please sign in to comment.