mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Try simpler regexp
This commit is contained in:
parent
3e74809d43
commit
91adefb733
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ public class CategorizationFragment extends Fragment {
|
|||
//FIXME: Regex not working
|
||||
for(Iterator<String> item = mergedItemsList.iterator(); item.hasNext();) {
|
||||
String s = item.next();
|
||||
if(s.matches("\\b(19|20)\\d{2}\\b")) {
|
||||
if(s.matches("\\b\\d{4}\\b")) {
|
||||
Log.d(TAG, "Filtering out year " + s);
|
||||
item.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue