Update site-list.py

This commit is contained in:
Arjix 2021-10-04 20:30:02 +03:00 committed by GitHub
parent 2e2614b1b0
commit fd454c617c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ with open("README.md", "r+", encoding='utf-8') as readme:
for site in enabled_sites:
if site in sites:
readme.write(
"- [{0}]({1}) \n".format(sub("^https?://", "", sites[site]), sites[site]))
"- [{0}]({1}) \n".format(sub("^https?://(?:www\.)?", "", sites[site]), sites[site]))
readme.write(END_MARKER)
readme.write(raw.split(END_MARKER)[-1])