mirror of
https://github.com/fmhy/edit.git
synced 2026-02-17 08:41:11 +11:00
Update replace-links-to-fmhy-in-files-in-current-dir.py
This commit is contained in:
parent
a0121d9429
commit
1d9f839dc5
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ def replaces_for_beginners_guide(text):
|
|||
text = re.sub(r"!!!info\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">\s(.+?)\n", r"> \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\]\(#beginners-guide-to-piracy\)\*\*', '', text, flags=re.MULTILINE)
|
||||
text = re.sub("!!!\n!!!\n", "!!!\n", text, flags=re.MULTILINE)
|
||||
text = re.sub("\n\*\*\[", "\n* **[", text, flags=re.MULTILINE)
|
||||
return text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue