Skip to content

Commit 87ef0b1

Browse files
remove extra pattern declaration
1 parent eda9258 commit 87ef0b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DocToolsLLM/utils/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989

9090
clozeregex = re.compile(r"{{c\d+::|}}") # for removing clozes in anki
9191
markdownlink_regex = re.compile(r"\[.*?\]\((.*?)\)") # to find markdown links
92-
markdownlinkparser_regex = pattern = re.compile(r'\[([^\]]+)\]\(http[s]?://[^)]+\)') # to replace markdown links by their text
92+
markdownlinkparser_regex = re.compile(r'\[([^\]]+)\]\(http[s]?://[^)]+\)') # to replace markdown links by their text
9393
# to check that a youtube link is valid
9494
yt_link_regex = re.compile("youtube.*watch")
9595
emptyline_regex = re.compile(r"^\s*$", re.MULTILINE)

0 commit comments

Comments
 (0)