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 {