Fix patch

make a case insensitive search
This commit is contained in:
angelblue05 2018-09-15 18:07:34 -05:00
parent 556a6e4f8e
commit 387cfafa5a

View file

@ -123,7 +123,8 @@ def find(dict, item):
return dict[item] return dict[item]
for key,value in sorted(dict.iteritems(), key=lambda (k,v): (v,k)): for key,value in sorted(dict.iteritems(), key=lambda (k,v): (v,k)):
if re.match(key, item):
if re.match(key, item, re.I):
return dict[key] return dict[key]
def event(method, data=None): def event(method, data=None):