fix(MessageProcessor): more accurate emoji regex
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
92b1d4d662
commit
f421d193e5
|
|
@ -7,7 +7,7 @@ import chat.revolt.internals.EmojiImpl
|
|||
object MessageProcessor {
|
||||
private val MentionRegex = Regex("@((?:\\p{L}|[\\d_.-])+)#([0-9]{4})", RegexOption.IGNORE_CASE)
|
||||
private val ChannelRegex = Regex("(?:\\s|^)#(.+?)(?:\\s|\$)", RegexOption.IGNORE_CASE)
|
||||
private val EmojiRegex = Regex(":(.+?):", RegexOption.IGNORE_CASE)
|
||||
private val EmojiRegex = Regex(":([a-zA-Z0-9_+-]+):", RegexOption.IGNORE_CASE)
|
||||
|
||||
val emoji = EmojiImpl()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue