}
func pathExtractor(input string) [][][]byte {
- surroundRegex := "[@~a-zA-Z/.]*"
+ surroundRegex := "[@~\\-a-zA-Z/.0-9]*"
r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")")
temp := [][][]byte{}
temp = r.FindAllSubmatch([]byte(input), -1)
t.Errorf("Matches this.user", output)
}
+ output = GetAllMatches("To https://test@test.org/88/ls.git", MatchOptions{})
+ if len(output) != 0 {
+ t.Errorf("Matches email adresses", output)
+ }
+
output = GetAllMatches(" mail@mail.com ", MatchOptions{})
if len(output) != 0 {
t.Errorf("Matches email adresses", output)