diff --git a/generator/transformers/enums_producer.py b/generator/transformers/enums_producer.py index 69797f772..d41cd739d 100644 --- a/generator/transformers/enums_producer.py +++ b/generator/transformers/enums_producer.py @@ -75,7 +75,7 @@ def extract_param(self, param: EnumElement, item_name: str): if re.match(r'^[A-Z\d]+$', item): name.append(item.title()) name = ''.join(name) - if any(re.search(r'^(sdl)?({})?{}$'.format(item_name.casefold(), name.casefold()), k) for k in self.key_words): + if any(re.search(r'^(sdl)?({}){}$'.format(item_name.casefold(), name.casefold()), k) for k in self.key_words): name = self._replace_keywords(name) data['name'] = name return self.param_named(**data)