Skip to content

Are keywords (for blocking) case sensitive? #247

Closed Answered by naveensingh
rmj-maker asked this question in Q&A
Discussion options

You must be logged in to vote

No.

private fun isMessageFilteredOut(context: Context, body: String): Boolean {
for (blockedKeyword in context.config.blockedKeywords) {
if (body.contains(blockedKeyword, ignoreCase = true)) {
return true
}
}
return false
}
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rmj-maker
Comment options

@naveensingh
Comment options

Answer selected by rmj-maker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants