fix links in parentheses

This commit is contained in:
Sam Samskies 2023-02-21 19:03:52 -06:00
parent e0dea32d6f
commit 9511792e45
No known key found for this signature in database
GPG Key ID: E3F697EE1B6EB156

View File

@ -89,7 +89,7 @@ export const EmailRegex =
*/
export const UrlRegex =
// eslint-disable-next-line no-useless-escape
/((?:http|ftp|https):\/\/(?:[\w+?\.\w+])+(?:[a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?)/i;
/((?:http|ftp|https):\/\/(?:[\w+?\.\w+])+(?:[a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*(?<!\)))\b)/i;
/**
* Extract file extensions regex