diff --git a/src/main/java/me/zeroeightsix/kami/util/text/MessageDetection.kt b/src/main/java/me/zeroeightsix/kami/util/text/MessageDetection.kt index f6ac395c4..f9f805618 100644 --- a/src/main/java/me/zeroeightsix/kami/util/text/MessageDetection.kt +++ b/src/main/java/me/zeroeightsix/kami/util/text/MessageDetection.kt @@ -36,7 +36,7 @@ object MessageDetection { } }, OTHER { - private val regex = "^<(\\w)>".toRegex() + private val regex = "^<(\\w+)>".toRegex() override fun detect(input: CharSequence) = playerName(input) != null @@ -45,7 +45,7 @@ object MessageDetection { } }, ANY { - private val regex = "^<(\\w)>".toRegex() + private val regex = "^<(\\w+)>".toRegex() override fun detect(input: CharSequence) = input.contains(regex) @@ -79,4 +79,4 @@ object MessageDetection { BARITONE("^\\[B(aritone)?]".toRegex()), TPA_REQUEST("^\\w+? (has requested|wants) to teleport to you\\.".toRegex()) } -} \ No newline at end of file +}