[F] Positive look-ahead in regex matching
This commit is contained in:
parent
469dd762f2
commit
2b4a35f12b
2 changed files with 38 additions and 38 deletions
|
|
@ -3,12 +3,12 @@
|
|||
This script turns readme shorthand pull request references (i.e. dylanaraps/neofetch#1946) into full
|
||||
GitHub pull request links.
|
||||
"""
|
||||
import re
|
||||
import regex as re
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
RE_SHORTHAND = re.compile(r"(\w+?)/(\w+?)#(\d+)")
|
||||
MY_RE = re.compile(r"[^\w\[]#(\d+)")
|
||||
MY_RE = re.compile(r"(?<=[^\w\[])#(\d+)")
|
||||
|
||||
|
||||
def reformat_readme():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue