Update replace.py
remove "◄◄ Back to Wiki Index" from pages in the website
This commit is contained in:
parent
0bfa93d081
commit
eb3d8d9f3d
1
.github/replace.py
vendored
1
.github/replace.py
vendored
@ -44,6 +44,7 @@ def general(text: str):
|
||||
|
||||
def remove_backtowiki_toc(text):
|
||||
text = re.sub('\*\*\[◄◄ Back to Wiki Index\]\(https://www\.reddit\.com/r/FREEMEDIAHECKYEAH/wiki/index\)\*\*\n', '', text, flags=re.MULTILINE)
|
||||
text = re.sub('\*\*\[◄◄ Back to Wiki Index\]\(https://www\.reddit\.com/r/FREEMEDIAHECKYEAH/wiki/tools-index\)\*\*\n', '', text, flags=re.MULTILINE)
|
||||
text = re.sub(r'\*\*\[Table of Contents\]\(https?:\/\/.*?ibb\.co.*\)\*\* - For mobile users\n', '', text, flags=re.MULTILINE)
|
||||
text = re.sub("\*\*\*\n\*\*\*\n\*\*\*\n\*\*\*\n\n\n\*\*\*\n\*\*\*\n\n", '', text, flags=re.MULTILINE)
|
||||
text = re.sub("\*\*\*\n\*\*\*\n\*\*\*\n\*\*\*\n\n\n\*\*\*\n\*\*\* \n\n", '', text, flags=re.MULTILINE)
|
||||
|
Loading…
Reference in New Issue
Block a user