Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/common/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def run(*args, **kwargs):


def parse_md_image(content: str):
matches = re.finditer("!\[.*?\]\(.*?\)", content)
matches = re.finditer("!\\[.*?\\]\\(.*?\\)", content)
image_list = [match.group() for match in matches]
return image_list

Expand Down Expand Up @@ -414,7 +414,7 @@ def flat_map(array: List[List]):


def parse_image(content: str):
matches = re.finditer("!\[.*?\]\(\.\/oss\/(image|file)\/.*?\)", content)
matches = re.finditer("!\\[.*?\\]\\(\\.\\/oss\\/(image|file)\\/.*?\\)", content)
image_list = [match.group() for match in matches]
return image_list

Expand Down