Merge pull request #482 from Rust1667/patch-3

fix beginners-guide double title in fmhy.pages.dev
This commit is contained in:
nbats 2023-04-07 02:02:49 -07:00 committed by GitHub
commit 64c7bd771b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ import sys
def replaces_for_beginners_guide(text): def replaces_for_beginners_guide(text):
text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE) text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE)
text = re.sub('## -> Beginners Guide to Piracy<-\n', '', text, flags=re.MULTILINE) text = re.sub('## -> Beginners Guide to Piracy <-\n', '', text, flags=re.MULTILINE)
text = re.sub(r"!!!note\s(.+?)\n", r"!!!\n\1\n!!!\n", text, flags=re.MULTILINE) text = re.sub(r"!!!note\s(.+?)\n", r"!!!\n\1\n!!!\n", text, flags=re.MULTILINE)
text = re.sub(r"!!!warning\s(.+?)\n", r"!!!warning\n\1\n!!!\n", text, flags=re.MULTILINE) text = re.sub(r"!!!warning\s(.+?)\n", r"!!!warning\n\1\n!!!\n", text, flags=re.MULTILINE)
text = re.sub('\*\*\[\^ Back to Top\]\(https://rentry.org/Piracy-BG\)\*\*', '', text, flags=re.MULTILINE) text = re.sub('\*\*\[\^ Back to Top\]\(https://rentry.org/Piracy-BG\)\*\*', '', text, flags=re.MULTILINE)