fix: 修复自定义口令末尾多余逗号的情况

This commit is contained in:
涵曦 2024-09-29 10:22:01 +08:00
parent 86110a2e65
commit e2d71266c5

View File

@ -161,6 +161,7 @@ class Config:
def append_keyword(self, keys, action):
for key in keys.split(","):
if key:
self.key_word_dict[key] = action
if key not in self.key_match_order:
self.key_match_order.append(key)