Unverified Commit 93609ca7 authored by Baptiste Roux's avatar Baptiste Roux Committed by GitHub

fix: update markdown hyperlink regex (#1315)

* fix: Update markdown hyperlink regex

* chore(lint): Remove unnecessary escape character
parent 70a187cc
......@@ -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);
......
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