From e1312154fd5b0f8e79e27727ec4f95f8313211ca Mon Sep 17 00:00:00 2001 From: Aleksandr Mishchenko Date: Thu, 2 Apr 2020 23:26:07 +0200 Subject: [PATCH] update regexp for keywords --- generator/transformers/enums_producer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)