forked from p34709852/monkey
Island: All node keywords should be lowercase
This commit is contained in:
parent
02ebef56cf
commit
6bbb825873
|
@ -45,7 +45,9 @@ class NodeStates(Enum):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _is_state_from_keywords(group, keywords) -> bool:
|
def _is_state_from_keywords(group, keywords) -> bool:
|
||||||
group_keywords = group.value.split("_")
|
group_keywords = group.value.split("_")
|
||||||
return collections.Counter(group_keywords) == collections.Counter(keywords)
|
return collections.Counter(group_keywords) == collections.Counter(
|
||||||
|
[word.lower() for word in keywords]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class MultipleGroupsFoundException(Exception):
|
class MultipleGroupsFoundException(Exception):
|
||||||
|
|
Loading…
Reference in New Issue