Skip to content

Conversation

@moorereason
Copy link
Collaborator

When matching variables in routes, gorilla/mux uses a default pattern of
"[^/]+", thereby prohibiting slashes in variable matching. Override the
default pattern to remove this restriction.

See https://github.com/gorilla/mux/blob/v1.8.0/regexp.go#L50

Fixes #421

@moorereason moorereason added this to the 2.8.0 milestone Nov 24, 2020
@moorereason moorereason requested a review from adnanh November 24, 2020 22:54
When matching variables in routes, gorilla/mux uses a default pattern of
"[^/]+", thereby prohibiting slashes in variable matching.  Override the
default pattern to remove this restriction.

See https://github.com/gorilla/mux/blob/v1.8.0/regexp.go#L50

Fixes adnanh#421
@adnanh adnanh merged commit 9dec52c into adnanh:development Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants