diff --git a/utils/logs.go b/utils/logs.go index 3769235f..d9f21c01 100644 --- a/utils/logs.go +++ b/utils/logs.go @@ -8,7 +8,7 @@ import ( ) func cleanString(text string) string { - urlRegex := `[a-zA-Z][a-zA-Z0-9+.-]*:\/\/[a-zA-Z0-9+%/.\-:_?&=]+` + urlRegex := `[a-zA-Z][a-zA-Z0-9+.-]*:\/\/[a-zA-Z0-9+%/.\-:_?&=#@+]+` re := regexp.MustCompile(urlRegex) safeString := re.ReplaceAllString(text, "[redacted url]")