Files
live-call-asr-monitor/frontend-redesign/patch_sandbox4.py
2026-07-16 11:24:02 +08:00

19 lines
504 B
Python

import re
with open('src/components/SandboxSimulation.tsx', 'r') as f:
content = f.read()
pattern = r"\s*\{/\* Session level Silent Duplicate Deduplication Counter Status Bar \*/\}(.*?)\{/\* Sandbox system help documentation \*/\}(.*?)</div>\n </div>\n </div>\n \);\n\}"
replacement = r"""
</div>
</div>
</div>
);
}"""
content = re.sub(pattern, replacement, content, flags=re.DOTALL)
with open('src/components/SandboxSimulation.tsx', 'w') as f:
f.write(content)