From 67195859dc6d6ba6a7e95b1956ae76f186746448 Mon Sep 17 00:00:00 2001 From: Mahoo Huang <45908451+Mahoo12138@users.noreply.github.com> Date: Tue, 15 Nov 2022 21:15:10 +0800 Subject: [PATCH] fix: abnormal link regex (#474) --- web/src/labs/marked/parser/Link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/labs/marked/parser/Link.ts b/web/src/labs/marked/parser/Link.ts index 5e84f1665..e25b8142c 100644 --- a/web/src/labs/marked/parser/Link.ts +++ b/web/src/labs/marked/parser/Link.ts @@ -5,7 +5,7 @@ import { marked } from ".."; import InlineCode from "./InlineCode"; import BoldEmphasis from "./BoldEmphasis"; -export const LINK_REG = /\[(.*?)\]\((.+?)\)/; +export const LINK_REG = /\[(.*?)\]\((.+?)\)+/; const renderer = (rawStr: string): string => { const matchResult = rawStr.match(LINK_REG);