Kaynağa Gözat

fix(chat): 修复 chat 对 emote 的支持

dzp 2 yıl önce
ebeveyn
işleme
5db103a75b
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      mud/pkuxkx/plugins/lib/ui/chat.tin

+ 2 - 2
mud/pkuxkx/plugins/lib/ui/chat.tin

@@ -27,7 +27,7 @@
 } {4.994};
 
 #nop 单行的 emote 表情;
-#action {~{*UTF8}{?:^}%c【{\p{Han}{2,5}}】%*(%+1..S{| \S+} ||{| \S+} %+1..S)%c{|◆\p{Han}+◆}%c$E} {
+#action {~{*UTF8}{?:^}%c【{\p{Han}{2,5}}】%*(%+1..S%s%S || %+1..S%s%S)%c{|◆\p{Han}+◆}%c$E} {
     chat.log {%2} {%0};
 } {4.994};
 
@@ -127,7 +127,7 @@
         chat.log {%1} {%%0};
     } {4.993};
 
-    #action {~^%*(%w ||{| \S+} %+1..S)%c{|ID=chat.log}$} {
+    #action {~^%*(%+1..S%s%S || %+1..S%s%S)%c{|ID=chat.log}$} {
         chat.log {%1} {%%0};
         #class chat.log kill;
     } {4.992};