Commit
·
1b1fce9
1
Parent(s):
3ba8764
Fix
Browse files
app.py
CHANGED
@@ -126,6 +126,7 @@ def format(text):
|
|
126 |
|
127 |
def extract_db_code(text):
|
128 |
print(text)
|
|
|
129 |
pattern = r'```(?:\w+)?\s?(.*?)```'
|
130 |
matches = re.findall(pattern, text, re.DOTALL)
|
131 |
return [match.strip() for match in matches]
|
|
|
126 |
|
127 |
def extract_db_code(text):
|
128 |
print(text)
|
129 |
+
text = text.replace(".print", "")
|
130 |
pattern = r'```(?:\w+)?\s?(.*?)```'
|
131 |
matches = re.findall(pattern, text, re.DOTALL)
|
132 |
return [match.strip() for match in matches]
|