]> Sergey Matveev's repositories - path-extractor.git/blobdiff - extractor.go
Match logo@2x.png but not email adress
[path-extractor.git] / extractor.go
index 0b036640ede67bd1bedea8b92f21d1cdf47e96f8..7d13650c008f6cc2b3907d23249ed5d58b8ddaec 100644 (file)
@@ -17,7 +17,7 @@ func GetAllMatches(input string) []string {
        matches = pathExtractor(input)
        for _, match := range matches {
                s = string(match[1])
-               if isDate(s) || isVersion(s) || isGitRange(s) || isGitInstruction(s) || containsInvalidString(s) || len(s) <= 2 {
+               if isEmail(s) || isDate(s) || isVersion(s) || isGitRange(s) || isGitInstruction(s) || containsInvalidString(s) || len(s) <= 2 {
                        continue
                }
                if isGitPath(s) {