Escape single quotes
(text: str)
| 8 | |
| 9 | |
| 10 | def prepare_text_for_dbml(text: str) -> str: |
| 11 | '''Escape single quotes''' |
| 12 | pattern = re.compile(r"('''|')") |
| 13 | return pattern.sub(r'\\\1', text) |
| 14 | |
| 15 | |
| 16 | def quote_string(text: str) -> str: |
no outgoing calls