fix curYearInString

This commit is contained in:
Matija Nalis 2024-07-15 01:33:42 +02:00
parent c545642e96
commit 1ca742d942

View file

@ -58,7 +58,7 @@ class CategoriesModel @Inject constructor(
// anywhere within the string (.* is wildcard) (Issue #47)
// And that item does not equal the current year or previous year
return item.matches(".*(19|20)\\d{2}.*".toRegex())
&& !item.contains(yearInString)
&& !item.contains(curYearInString)
&& !item.contains(prevYearInString)
}
}