Skip to content

Commit 504d3c9

Browse files
committed
fix(urlRegex): remove unnecessary escape character
1 parent ca564df commit 504d3c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/url.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import type { LinkProps } from "types";
33

44
export const urlRegex =
5-
/(https?:\/\/|www\.)[^\s<>'"()\[\]{}]+[^\s<>'"()\[\]{}.,;:!?\])}]/u;
5+
/(https?:\/\/|www\.)[^\s<>'"()[\]{}]+[^\s<>'"()[\]{}.,;:!?\])}]/u;
66

77
export const UrlComponent: React.FC<React.PropsWithChildren<LinkProps>> = ({
88
match: url,

0 commit comments

Comments
 (0)