fix: abnormal link regex (#474)

pull/475/head^2
Mahoo Huang 2 years ago committed by GitHub
parent 61abc6dd11
commit 67195859dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save