mirror of
https://github.com/usememos/memos.git
synced 2025-10-08 13:28:29 +08:00
fix: update markdown hyperlink regex (#1315)
* fix: Update markdown hyperlink regex * chore(lint): Remove unnecessary escape character
This commit is contained in:
parent
70a187cc18
commit
93609ca731
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import BoldEmphasis from "./BoldEmphasis";
|
|||
import PlainText from "./PlainText";
|
||||
import { matcher } from "../matcher";
|
||||
|
||||
export const LINK_REG = /\[(.*?)\]\((.+?)\)+/;
|
||||
export const LINK_REG = /\[([^\]]+)\]\(([^)]+)\)/;
|
||||
|
||||
const renderer = (rawStr: string) => {
|
||||
const matchResult = matcher(rawStr, LINK_REG);
|
||||
|
|
Loading…
Add table
Reference in a new issue