Spaces:
Sleeping
Sleeping
Paladugula Siva Satyanarayana commited on
Commit ·
aa3c8d9
1
Parent(s): 859f8b3
added folder
Browse files
backend/app/services/utility.py
CHANGED
|
@@ -79,7 +79,7 @@ class UtilityClass:
|
|
| 79 |
if not text or not text.strip():
|
| 80 |
return False
|
| 81 |
|
| 82 |
-
# Remove markdown formatting like ```sql ... ```
|
| 83 |
text = re.sub(r"```sql|```", "", text, flags=re.IGNORECASE).strip()
|
| 84 |
|
| 85 |
# Collapse multiple spaces & line breaks into a single space
|
|
|
|
| 79 |
if not text or not text.strip():
|
| 80 |
return False
|
| 81 |
|
| 82 |
+
# Remove markdown formatting like ```sql ... ```
|
| 83 |
text = re.sub(r"```sql|```", "", text, flags=re.IGNORECASE).strip()
|
| 84 |
|
| 85 |
# Collapse multiple spaces & line breaks into a single space
|