improve the look of the list

This commit is contained in:
Cloudburst 2021-10-04 17:11:45 +02:00 committed by GitHub
parent 575389dfab
commit e995128b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
from glob import glob from glob import glob
from re import search, compile from re import search, compile, sub
# Globals # Globals
URL_REGEX = compile("override val mainUrl(?:\:\s?String)?[^\"']+[\"'](https?://[a-zA-Z0-9\.-]+)[\"']") URL_REGEX = compile("override val mainUrl(?:\:\s?String)?[^\"']+[\"'](https?://[a-zA-Z0-9\.-]+)[\"']")
@ -28,7 +28,7 @@ with open("README.md", "r+", encoding='utf-8') as readme:
readme.write(START_MARKER+"\n") readme.write(START_MARKER+"\n")
for site in sites: for site in sites:
readme.write("- [{0}]({0}) \n".format(site)) readme.write("- [{0}]({1}) \n".format(sub("^https?://", "", site), site))
readme.write(END_MARKER) readme.write(END_MARKER)
readme.write(raw.split(END_MARKER)[-1]) readme.write(raw.split(END_MARKER)[-1])