Skip to content

Commit

Permalink
Improved client side filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Toth committed Jul 5, 2017
1 parent 93fa16c commit a63a74e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public boolean matchStringFilter(EntityModel entityModel, String queryString, Se
for (String field : affectedFields) {
if (entityModel.getValue(field) != null) {
String fieldValue = Util.getUiDataFromModel(entityModel.getValue(field));
fieldValue = fieldValue.replaceAll("\\s+", "");
fieldValue = fieldValue.toLowerCase();
queryString = queryString.toLowerCase();
queryString = queryString.replaceAll("\\s+", "");
if (fieldValue.contains(queryString)) {
return true;
}
Expand Down

0 comments on commit a63a74e

Please sign in to comment.