Skip to content

Commit

Permalink
Fix bug in feature search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthreddy542 committed Jul 30, 2021
1 parent 4823169 commit 1e322b8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/edu/iastate/metnet/metaomgraph/FilterableTableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,21 @@ public void applyFilter(String[] values) {
boolean isNotFlag = false;
boolean doesNotFlag = false;
boolean containsFlag = false;
if(findMe.charAt(0) == '!') {
isNotFlag = true;
findMe = findMe.substring(1);
} else if(findMe.substring(0, 2).contentEquals("~!")) {
doesNotFlag = true;
findMe = findMe.substring(2);
} else if(findMe.charAt(0) == '~') {
containsFlag = true;
findMe = findMe.substring(1);
if(findMe.length() > 1) {
if(findMe.charAt(0) == '!') {
isNotFlag = true;
findMe = findMe.substring(1);
} else if(findMe.substring(0, 2).contentEquals("~!")) {
doesNotFlag = true;
findMe = findMe.substring(2);
} else if(findMe.charAt(0) == '~') {
containsFlag = true;
findMe = findMe.substring(1);
}
}
boolean colFlag = false;
int colInt = -1;
boolean allCols = false;
boolean allCols = true;
boolean anyCol = false;
// delim should be present and should have values on both sides
if (findMe.indexOf(delim) > -1 && findMe.indexOf(delim) < findMe.length() - delim.length()) {
Expand Down

0 comments on commit 1e322b8

Please sign in to comment.