Skip to content

Commit

Permalink
Merge pull request #17 from hurbcom/bugfix/dsn-publishable
Browse files Browse the repository at this point in the history
Stopping before break slice
  • Loading branch information
bernardolm authored Jan 21, 2019
2 parents 9dcce26 + 26906d9 commit be898cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func DSN2MAP(dsn string) map[string]string {

result := make(map[string]string)
for i, name := range re.SubexpNames() {
if len(name) > 0 {
if len(name) > 0 && i < len(match) {
result[name] = match[i]
}
}
Expand Down

0 comments on commit be898cf

Please sign in to comment.