mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Change literal 2016 to regexp
This commit is contained in:
parent
bc02ac5c40
commit
2b4960afb8
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue