You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (inti = 0, n = completeFilter.length(); i < n; i++) {
51
-
charc = completeFilter.charAt(i);
52
-
if (c == '(') {
53
-
// start of group
54
-
thrownewException("Invalid filter: " + completeFilter + ". Groups are not allowed yet! Position: " + i);
55
-
} elseif (c == ')') {
56
-
thrownewException("Invalid filter: " + completeFilter + ". Groups are not allowed yet! Position: " + i);
57
-
} elseif (c == ',') {
58
-
// OR found
59
-
if (i == 0) {
60
-
thrownewException("Invalid filter: " + completeFilter + ". <,> cannot be the first char! Position: " + i);
61
-
}
62
-
if (and) {
63
-
thrownewException("Invalid filter: " + completeFilter + ". OR(,) found with previous AND. Within one filter you can only combine all with OR (,) or all with AND(;). Position: " + i);
64
-
}
65
-
if (oneFilterTerm.length() == 0) {
66
-
thrownewException("Invalid filter: " + completeFilter + ". OR(,) found but no filter term as operand before. Position: " + i);
thrownewException("Invalid filter: " + completeFilter + ". <;> cannot be the first char! Position: " + i);
86
-
}
87
-
if (or) {
88
-
thrownewException("Invalid filter: " + completeFilter + ". AND(;) found with previous OR. Within one filter you can only combine all with OR (,) or all with AND(;). Position: " + i);
89
-
}
90
-
if (oneFilterTerm.length() == 0) {
91
-
thrownewException("Invalid filter: " + completeFilter + ". AND(;) found but no filter term as operand before. Position: " + i);
0 commit comments