mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
kotlin is not dart
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
parent
b24b1a1884
commit
e980f6bb2f
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue