Removed unused class

This commit is contained in:
zerrium 2021-03-19 16:17:02 +07:00
parent ea9d39c265
commit 741aa0dfa5
2 changed files with 0 additions and 52 deletions

View File

@ -1,31 +0,0 @@
package zerrium;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public abstract class FilterKeywordsUtility {
private static final List<String> FILTER_KEYWORDS = new ArrayList<>();
public static boolean append(final String keyword){
if(keyword == null) return false;
FILTER_KEYWORDS.add(keyword);
return true;
}
public static boolean insert(final String[] keywords){
if(keywords == null) return false;
FILTER_KEYWORDS.addAll(Arrays.asList(keywords));
return true;
}
public static boolean filter(String caption){
if(caption == null) return false;
String temp = caption.toLowerCase(Locale.getDefault());
for(final String s:FILTER_KEYWORDS){
if(temp.contains(s)) return true;
}
return false;
}
}

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="filter_keyword">
<item>paid promote</item>
<item>endorse</item>
<item>endorsement</item>
<item>paid-promote</item>
<item>paid_promote</item>
<item>paid.promote</item>
<item>paidpromote</item>
<item>advertisement</item>
<item>p41d pr0m0t3</item>
<item>p@1d pr0m0t3</item>
<item>sponsor</item>
<item>sp0ns0r</item>
<item>3nd0r53</item>
<item>iklan</item>
<item>1kl@n</item>
<item>1kl4n</item>
</string-array>
</resources>