Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/credentials.go
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ func (api *API) ReadCredentials(id int) (map[string]interface{}, error) {

func ExtractInfo(url string) map[string]interface{} {
paramsMap := make(map[string]interface{})
r := regexp.MustCompile(`amqp:\/\/(?P<username>(.*?)):(?P<password>(.*?))@`)
r := regexp.MustCompile(`^.*:\/\/(?P<username>(.*)):(?P<password>(.*))@`)
match := r.FindStringSubmatch(url)

for i, name := range r.SubexpNames() {

0 comments on commit f6a36f9

Please sign in to comment.