fix: 修复自定义口令末尾多余逗号的情况
This commit is contained in:
parent
86110a2e65
commit
e2d71266c5
@ -161,6 +161,7 @@ class Config:
|
|||||||
|
|
||||||
def append_keyword(self, keys, action):
|
def append_keyword(self, keys, action):
|
||||||
for key in keys.split(","):
|
for key in keys.split(","):
|
||||||
|
if key:
|
||||||
self.key_word_dict[key] = action
|
self.key_word_dict[key] = action
|
||||||
if key not in self.key_match_order:
|
if key not in self.key_match_order:
|
||||||
self.key_match_order.append(key)
|
self.key_match_order.append(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user