mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Ensure there is no dup and cleanup
This commit is contained in:
parent
1233fde261
commit
f1e280827d
2 changed files with 2 additions and 1 deletions
|
@ -125,4 +125,4 @@ class ExplicitTermFilterTest : InstrumentedTest {
|
|||
fun canSearchForTrue() {
|
||||
explicitTermFilter.canSearchFor("android") shouldBe true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ class ExplicitTermFilter @Inject constructor(
|
|||
.orEmpty()
|
||||
.split("\n")
|
||||
.map { it.trim() }
|
||||
.distinct()
|
||||
.filter { it.isNotEmpty() }
|
||||
|
||||
private val explicitContentRegex = explicitTerms
|
||||
|
|
Loading…
Add table
Reference in a new issue