diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index c8d5865..835ed1a 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -160,7 +160,7 @@ class ServiceCreator: if re.search(pattern, file_content, re.MULTILINE): # Insert our new row right before that closing brace line updated_content = re.sub( - pattern, f"\n{new_row}\n\\1", file_content, count=1, flags=re.MULTILINE + pattern, f"\n{new_row}\\1", file_content, count=1, flags=re.MULTILINE ) with open(MASTER_IOC_SUBS_FILE, "w") as f: f.write(updated_content)