From afc2f26da8991445e39e02981127e576b945f945 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Mon, 24 Jul 2023 13:49:49 +0200 Subject: [PATCH] Allow more characters in the url --- pkg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/main.go b/pkg/main.go index 750a1c1..6c73b09 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -19,7 +19,7 @@ var ( port = flag.Int("port", 8080, "The port to listen on") ) -var urlRe = regexp.MustCompile(`(https?://.*?)/(\w+)$`) +var urlRe = regexp.MustCompile(`(https?://.*?)/([-a-zA-Z0-9()@:%_\+.~#?&=]+)$`) var topic string var serverUrl string