X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=extractor.go;h=7d13650c008f6cc2b3907d23249ed5d58b8ddaec;hb=85fb8028aeb1f59c15b917d731e13e4c6e17fefd;hp=0b036640ede67bd1bedea8b92f21d1cdf47e96f8;hpb=f714a02e4f43b8fc43c46f33aed89db9f194c9aa;p=path-extractor.git diff --git a/extractor.go b/extractor.go index 0b03664..7d13650 100644 --- a/extractor.go +++ b/extractor.go @@ -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) {