Island: All node keywords should be lowercase

This commit is contained in:
Ilija Lazoroski 2022-07-26 16:32:58 +02:00
parent 02ebef56cf
commit 6bbb825873
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ class NodeStates(Enum):
@staticmethod
def _is_state_from_keywords(group, keywords) -> bool:
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):