Skip to content

Commit

Permalink
Allow more characters in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
academo committed Jul 24, 2023
1 parent 67a69e6 commit afc2f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit afc2f26

Please sign in to comment.