From a83a5d25be0fb4c4903de34ff885e17b53cd3190 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Fri, 9 Jun 2023 06:18:13 -0700 Subject: [PATCH] Fix url regex --- src/util/nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/nostr.ts b/src/util/nostr.ts index d3aeaa67..596451ac 100644 --- a/src/util/nostr.ts +++ b/src/util/nostr.ts @@ -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 ) )