mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Switch to contains() instead of matches()
This commit is contained in:
parent
1c3fd70cb3
commit
87f4509db4
1 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ public class CategorizationFragment extends Fragment {
|
|||
Log.d(TAG, "Adding recent items: " + recentItems);
|
||||
|
||||
for (String item : mergedItems) {
|
||||
if (item.matches("(19|20)\\d{2}")) {
|
||||
if (item.contains("(19|20)\\d{2}")) {
|
||||
Log.d(TAG, "Filtering out year " + item);
|
||||
mergedItems.remove(item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue