19 lines
504 B
Python
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)
|