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

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

View File

@ -161,9 +161,10 @@ class Config:
def append_keyword(self, keys, action):
for key in keys.split(","):
self.key_word_dict[key] = action
if key not in self.key_match_order:
self.key_match_order.append(key)
if key:
self.key_word_dict[key] = action
if key not in self.key_match_order:
self.key_match_order.append(key)
def append_user_keyword(self):
for k, v in self.user_key_word_dict.items():