5 func pathExtractor(input string) [][][]byte {
6 surroundRegex := "[^][ \\t:'\"]*"
7 r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")")
9 temp = r.FindAllSubmatch([]byte(input), -1)
13 func stripParens(input string) string {
14 r := regexp.MustCompile("^\\((.*)\\)$")
16 temp = r.FindSubmatch([]byte(input))
20 return string(temp[1])
23 func postProcess(input string) string {
24 input = stripParens(input)
28 func GetAllMatches(input string) []string {
29 matches := [][][]byte{}
32 matches = pathExtractor(input)
33 for _, match := range matches {
35 if isEmail(s) || isDate(s) || isVersion(s) || isGitRange(s) || isGitInstruction(s) || endsWithInvalidString(s) || containsInvalidString(s) || len(s) <= 2 {
41 result = append(result, postProcess(s))