Skip to content

Commit 350709d

Browse files
author
Kostiantyn Sologubov
committed
correct key name processing
1 parent 48ef926 commit 350709d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

generator/transformers/common_producer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def key(param: str):
5353
if re.match(r'^[A-Z_\d]+$', param):
5454
return param
5555
else:
56-
return re.sub(r'([a-z]|[A-Z]{2,})([A-Z]|\d$)', r'\1_\2', param).upper()
56+
result = re.sub(r'([a-z]|[A-Z]{2,})([A-Z]|\d$)', r'\1_\2', param).upper()
57+
result = re.sub('IDPARAM', 'ID_PARAM', result)
58+
return result
5759

5860
@staticmethod
5961
def ending_cutter(n: str):

0 commit comments

Comments
 (0)