Change literal 2016 to regexp

This commit is contained in:
misaochan 2016-10-25 17:20:18 +13:00
parent bc02ac5c40
commit 2b4960afb8

View file

@ -226,10 +226,9 @@ public class CategorizationFragment extends Fragment {
//"(19|20)\\d{2}"
//"\\b(19|20)\\d{2}\\b"
for(Iterator<String> item = mergedItemsList.iterator(); item.hasNext();) {
String s = item.next();
if(s.contains("2016")) {
if(s.contains("(19|20)\\d{2}")) {
Log.d(TAG, "Filtering out year " + s);
item.remove();
}