mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +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 parseUrl = () => {
|
||||||
const raw = first(
|
const raw = first(
|
||||||
text.match(
|
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