Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
main - add quotes around regex symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Schaefer committed Jun 8, 2016
1 parent 19c78b8 commit 41fbf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -172,7 +172,7 @@ func main() {
// user:password@tcp(0.0.0.0:3306)/
// With this flag the user can avoid typing their password:
// user@tcp(0.0.0.0:3306)/
// Save text before : and after @ so we can insert the password
// Save text before ':' and after '@' so we can insert the password
// to create a proper DSN string.
dsnRegex := regexp.MustCompile(`(\w*):?\w*(@.+)`)
matches := dsnRegex.FindStringSubmatch(finalDsn)
Expand Down

0 comments on commit 41fbf10

Please sign in to comment.