Fix regex for urls

This commit is contained in:
Jonathan Staab 2023-06-05 06:43:14 -07:00
parent 26c96fdc9d
commit fada0d8f83

View File

@ -263,7 +263,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
)
)