mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
fix curYearInString
This commit is contained in:
parent
c545642e96
commit
1ca742d942
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class CategoriesModel @Inject constructor(
|
||||||
// anywhere within the string (.* is wildcard) (Issue #47)
|
// anywhere within the string (.* is wildcard) (Issue #47)
|
||||||
// And that item does not equal the current year or previous year
|
// And that item does not equal the current year or previous year
|
||||||
return item.matches(".*(19|20)\\d{2}.*".toRegex())
|
return item.matches(".*(19|20)\\d{2}.*".toRegex())
|
||||||
&& !item.contains(yearInString)
|
&& !item.contains(curYearInString)
|
||||||
&& !item.contains(prevYearInString)
|
&& !item.contains(prevYearInString)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue