mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Fix url regex
This commit is contained in:
parent
5b235c1f41
commit
a83a5d25be
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user