Unverified Commit 67195859 authored by Mahoo Huang's avatar Mahoo Huang Committed by GitHub

fix: abnormal link regex (#474)

parent 61abc6dd
...@@ -5,7 +5,7 @@ import { marked } from ".."; ...@@ -5,7 +5,7 @@ import { marked } from "..";
import InlineCode from "./InlineCode"; import InlineCode from "./InlineCode";
import BoldEmphasis from "./BoldEmphasis"; import BoldEmphasis from "./BoldEmphasis";
export const LINK_REG = /\[(.*?)\]\((.+?)\)/; export const LINK_REG = /\[(.*?)\]\((.+?)\)+/;
const renderer = (rawStr: string): string => { const renderer = (rawStr: string): string => {
const matchResult = rawStr.match(LINK_REG); const matchResult = rawStr.match(LINK_REG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment