fix: abnormal link regex (#474)

This commit is contained in:
Mahoo Huang 2022-11-15 21:15:10 +08:00 committed by GitHub
parent 61abc6dd11
commit 67195859dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);