mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Adding whitespaces
This commit is contained in:
parent
3681176f54
commit
e46588e336
1 changed files with 3 additions and 3 deletions
|
|
@ -62,14 +62,14 @@ public class PrefixUpdater extends AsyncTask<Void, Void, List<String>> {
|
||||||
Timber.d("Previous year: %s", prevYearInString);
|
Timber.d("Previous year: %s", prevYearInString);
|
||||||
|
|
||||||
//Copy to Iterator to prevent ConcurrentModificationException when removing item
|
//Copy to Iterator to prevent ConcurrentModificationException when removing item
|
||||||
for(iterator = items.iterator(); iterator.hasNext();) {
|
for (iterator = items.iterator(); iterator.hasNext();) {
|
||||||
String s = iterator.next();
|
String s = iterator.next();
|
||||||
|
|
||||||
//Check if s contains a 4-digit word anywhere within the string (.* is wildcard)
|
//Check if s contains a 4-digit word anywhere within the string (.* is wildcard)
|
||||||
//And that s does not equal the current year or previous year
|
//And that s does not equal the current year or previous year
|
||||||
//And if it is an irrelevant category such as Media_needing_categories_as_of_16_June_2017(Issue #750)
|
//And if it is an irrelevant category such as Media_needing_categories_as_of_16_June_2017(Issue #750)
|
||||||
if((s.matches(".*(19|20)\\d{2}.*") && !s.contains(yearInString) && !s.contains(prevYearInString))
|
if ((s.matches(".*(19|20)\\d{2}.*") && !s.contains(yearInString) && !s.contains(prevYearInString))
|
||||||
||s.matches("(.*)needing(.*)")||s.matches("(.*)taken on(.*)")) {
|
|| s.matches("(.*)needing(.*)")||s.matches("(.*)taken on(.*)")) {
|
||||||
Timber.d("Filtering out irrelevant result: %s", s);
|
Timber.d("Filtering out irrelevant result: %s", s);
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue