fix: Markdown hyperlinks with parenthesis take first closing parenthesis as final (#1213)

Updating regex to pick up edge case with parentheses
pull/1229/head
Jason Shawn D' Souza 2 years ago committed by GitHub
parent e83ea7fd76
commit 1b0629bf0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save