fix list info recognition

This commit is contained in:
Bela 2018-03-14 18:29:27 +01:00
parent 1ff1bacee7
commit 4379a5e929

View file

@ -57,7 +57,8 @@ class MobileRegex():
"""
return (info in ["FieldStateOption"] or
info in commands.Command.__subclasses__() or
info in [scls.__name__ for scls in
commands.Command.__subclasses__()] or
re.match(r"[^" + SUBINFO_SEP + r"]" +
SUBINFO_SEP + r"If.*", info))
# If clauses for commands