Browse Source

Updated FilterKeywords class (zerrium package)

renovate/org.robolectric-robolectric-4.x
zerrium 4 years ago
parent
commit
8f3ade92c3
  1. 1
      app/src/main/java/zerrium/FilterKeywords.java

1
app/src/main/java/zerrium/FilterKeywords.java

@ -20,6 +20,7 @@ public class FilterKeywords {
public static boolean filter(String word){ public static boolean filter(String word){
if(word == null) return false; if(word == null) return false;
word = word.toLowerCase();
for(String s:FILTER_KEYWORDS){ for(String s:FILTER_KEYWORDS){
if(word.contains(s)) return true; if(word.contains(s)) return true;
} }

Loading…
Cancel
Save