ppsspp/link_readme.py
2020-07-06 12:02:10 +02:00

11 lines
217 B
Python
Executable File

#!/bin/python
import re
f = open("README.md", "r+")
cont = f.read()
updated = re.sub(r"([^[])#(\d+)", r"\1[#\2](https://github.com/hrydgard/ppsspp/issues/\2)", cont)
f.seek(0)
f.write(updated)
f.truncate()
f.close()