Skip to content

Commit

Permalink
Merge pull request gomodule#158 from jmoiron/master
Browse files Browse the repository at this point in the history
allow for multi-digit redis db numbers (eg: "10")
  • Loading branch information
garyburd committed Sep 29, 2015
2 parents 3b7d339 + a6450ad commit 764a32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func Dial(network, address string, options ...DialOption) (Conn, error) {
return c, nil
}

var pathDBRegexp = regexp.MustCompile(`/(\d)\z`)
var pathDBRegexp = regexp.MustCompile(`/(\d+)\z`)

// DialURL connects to a Redis server at the given URL using the Redis
// URI scheme. URLs should follow the draft IANA specification for the
Expand Down

0 comments on commit 764a32c

Please sign in to comment.