-package main
+package pathextractor
import "regexp"
return temp
}
-func getAllMatches(input string) []string {
+func GetAllMatches(input string) []string {
matches := [][][]byte{}
result := []string{}
s := 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) {