mirror of
https://github.com/usememos/memos.git
synced 2025-10-18 02:07:09 +08:00
fix: abnormal link regex (#474)
This commit is contained in:
parent
61abc6dd11
commit
67195859dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue