fix: update markdown hyperlink regex (#1315)

* fix: Update markdown hyperlink regex

* chore(lint): Remove unnecessary escape character
This commit is contained in:
Baptiste Roux 2023-03-08 16:22:16 +01:00 committed by GitHub
parent 70a187cc18
commit 93609ca731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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