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