1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-08 07:57:28 +00:00

Removed java.util.Locale on KeywordsFilterUtils.java

This commit is contained in:
zerrium 2021-03-21 01:43:53 +07:00
parent 480fd59713
commit 0849d9d61f

View File

@ -2,7 +2,6 @@ package awais.instagrabber.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import awais.instagrabber.repositories.responses.Caption;
import awais.instagrabber.repositories.responses.Media;
@ -18,7 +17,7 @@ public final class KeywordsFilterUtils {
public boolean filter(final String caption){
if(caption == null) return false;
if(keywords.isEmpty()) return false;
final String temp = caption.toLowerCase(Locale.getDefault());
final String temp = caption.toLowerCase();
for(final String s:keywords){
if(temp.contains(s)) return true;
}