mirror of https://github.com/usememos/memos.git
fix: abnormal link regex (#474)
This commit is contained in:
parent
61abc6dd11
commit
67195859dc
|
|
@ -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…
Reference in New Issue