From 479e9292d23f275692f58af8bb4628d1dc75e3aa Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 19 Jan 2020 20:16:34 +0800 Subject: [PATCH] Remove useless trimStart --- .../kotlin/net.mamoe.mirai/event/MessageSubscribers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/MessageSubscribers.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/MessageSubscribers.kt index 43d9ab6a3..67b30d6ff 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/MessageSubscribers.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/MessageSubscribers.kt @@ -225,7 +225,7 @@ class MessageSubscribersBuilder>( ): Listener { return if (trim) { val toCheck = sub.trim() - content({ it.trimStart().contains(toCheck, ignoreCase = ignoreCase) }, { + content({ it.contains(toCheck, ignoreCase = ignoreCase) }, { onEvent(this, this.message.toString().trim()) }) } else {