kotlin is not dart

Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
Nicolas Werner 2022-07-04 21:51:49 +02:00
parent b24b1a1884
commit e980f6bb2f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -55,8 +55,8 @@ class EventMatchCondition(
// match any substring of the value of the property which starts and ends at a
// word boundary.
return try {
if (key == 'content.body') {
val regex = Regex("(\\W|^)"+pattern.simpleGlobToRegExp() + "(\\W|$)", setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
if (key == "content.body") {
val regex = Regex("(\\W|^)" + pattern.simpleGlobToRegExp() + "(\\W|$)", setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
regex.containsMatchIn(value)
} else {
val regex = Regex(pattern.simpleGlobToRegExp(), setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))