mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
A couple of fixes
This commit is contained in:
@@ -146,7 +146,7 @@ def replace_functions(obj):
|
||||
return obj
|
||||
|
||||
def fix_json_newlines(s):
|
||||
pattern = r'("(?:\\.|[^"\\])*")'
|
||||
pattern = r'("(?:\\\\n|\\.|[^"\\])*")'
|
||||
|
||||
def replace_newlines(match):
|
||||
return match.group(1).replace('\n', '\\n')
|
||||
|
||||
Reference in New Issue
Block a user