Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update allowed recent years to include 2020s #5761

Merged
merged 14 commits into from
Jul 20, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CategoriesModel @Inject constructor(
val prevYearInString = prevYear.toString()
Timber.d("Previous year: %s", prevYearInString)

//Check if item contains a 4-digit word anywhere within the string (.* is wildcard)
//Check if item contains a 4-digit word anywhere within the string (.* is wildcard) (Issue #47)
//And that item 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)
//Check if the year in the form of XX(X)0s is relevant, i.e. in the 2000s or 2010s as stated in Issue #1029
Expand All @@ -50,7 +50,7 @@ class CategoriesModel @Inject constructor(
|| item.matches("(.*)needing(.*)".toRegex())
|| item.matches("(.*)taken on(.*)".toRegex())
|| item.matches(".*0s.*".toRegex())
&& !item.matches(".*(200|201)0s.*".toRegex())
&& !item.matches(".*20[0-2]0s.*".toRegex())
mnalis marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
Loading