Skip to content

Commit

Permalink
fix: Camel case convertor.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj committed Apr 5, 2024
1 parent d9c5561 commit 3680765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/fluent/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def camel_to_snake_case(camel_case_str: str) -> str:
return camel_to_snake_case.cache[camel_case_str]
except KeyError:
_snake_case_str = re.sub(
"((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))", r"_\1", camel_case_str
"((?<=[a-z])[A-Z0-9]|(?!^)[A-Z](?=[a-z]))", r"_\1", camel_case_str
).lower()
camel_to_snake_case.cache[camel_case_str] = _snake_case_str
return _snake_case_str
Expand Down

0 comments on commit 3680765

Please sign in to comment.