Skip to content

Commit

Permalink
Support a new other non-alphanumeric characters in path parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Jul 24, 2017
1 parent 526206d commit 4a3db93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func compilePath(path spec.Path) *regexp.Regexp {
if submatches == nil {
pattern += `/` + part
} else {
pattern += `/(?P<` + submatches[0][1] + `>\w+)`
pattern += `/(?P<` + submatches[0][1] + `>[\w-_.]+)`
}
}

Expand Down

0 comments on commit 4a3db93

Please sign in to comment.