From 3680765430e7acc74dc0ec6f7690e45f921f884c Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Fri, 5 Apr 2024 12:58:39 +0530 Subject: [PATCH] fix: Camel case convertor. --- src/ansys/fluent/core/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/fluent/core/workflow.py b/src/ansys/fluent/core/workflow.py index b69241d4fa6..ceb4bba7646 100644 --- a/src/ansys/fluent/core/workflow.py +++ b/src/ansys/fluent/core/workflow.py @@ -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