5 func pathExtractor(input string) [][][]byte {
6 surroundRegex := "[^][ \\t:'\"]"
7 r := regexp.MustCompile("(" + surroundRegex + "*[\\./]" + surroundRegex + "*)")
9 temp = r.FindAllSubmatch([]byte(input), -1)
13 func GetAllMatches(input string) []string {
14 matches := [][][]byte{}
17 matches = pathExtractor(input)
18 for _, match := range matches {
20 if isDate(s) || isVersion(s) || isGitRange(s) || isGitInstruction(s) || containsInvalidString(s) || len(s) <= 2 {
26 result = append(result, s)