Fix url regex

This commit is contained in:
Jonathan Staab 2023-06-09 06:18:13 -07:00
parent 5b235c1f41
commit a83a5d25be

View File

@ -265,7 +265,7 @@ export const parseContent = ({content, tags = []}) => {
const parseUrl = () => {
const raw = first(
text.match(
/^((http|ws)s?:\/\/)?[-a-z0-9:%_\+~#@,=\.\*]+\.[a-z]{1,6}[-a-z0-9:%_\+~#\?&\/=;#@,\.]*/gi
/^((http|ws)s?:\/\/)?[-a-z0-9:%_\+~#@,=\.\*\(\)]+\.[a-z]{1,6}[-a-z0-9:%_\+~#\?&\/=;#@,\.\(\)]*/gi
)
)