Navigation Menu

Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #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
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.