From 2aa046c4b50a0de850eb567cd8bced03e8f99bd6 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 17 Apr 2025 22:17:18 +0200 Subject: make BlockState::id private --- codegen/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/lib/utils.py') diff --git a/codegen/lib/utils.py b/codegen/lib/utils.py index 162dd0fa..fd1e553b 100644 --- a/codegen/lib/utils.py +++ b/codegen/lib/utils.py @@ -10,7 +10,7 @@ def to_snake_case(name: str): def to_camel_case(name: str): - s = re.sub('[_ ](\w)', lambda m: m.group(1).upper(), + s = re.sub(r'[_ ](\w)', lambda m: m.group(1).upper(), name.replace('.', '_').replace('/', '_')) s = upper_first_letter(s) # if the first character is a number, we need to add an underscore -- cgit v1.2.3