(conf: str)
| 18 | return re.sub(r'[ \t]+</VirtualHost>', '</VirtualHost>', apache_conf) |
| 19 | |
| 20 | def collapse_empty_lines(conf: str) -> str: |
| 21 | # Replace multiple consecutive newlines (with optional whitespace) with a single newline |
| 22 | return re.sub(r'\n\s*\n+', '\n\n', conf.strip()) + '\n' |
| 23 | |
| 24 | def sub_at_start(apache_conf, root_path, api_target): |
| 25 | return re.sub( |
no outgoing calls
no test coverage detected