Skip to content

Commit b68f664

Browse files
author
bram
committed
Fixed issues with arithmetic operators
1 parent dbd48cf commit b68f664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_gpt_po/services/translation_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def _process_bulk_response(self, response_text: str, original_texts: List[str],
316316
# More sophisticated regex to handle quotes inside strings
317317
fixed_response = re.sub(
318318
r'"([^"\\]*(\\.[^"\\]*)*)"',
319-
lambda m: f'"{m.group(1).replace(chr(92)+chr(34), chr(34))}"',
319+
lambda m: f'"{m.group(1).replace(chr(92) + chr(34), chr(34))}"',
320320
fixed_response)
321321
translated_texts = json.loads(fixed_response)
322322
except json.JSONDecodeError as e:

0 commit comments

Comments
 (0)