fix: 修复自定义口令末尾多余逗号的情况
This commit is contained in:
parent
86110a2e65
commit
e2d71266c5
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user