- s := string("")
- // print(input)
- matches = pathExtractor(input)
- for _, match := range matches {
- s = string(match[1])
- if len(input) >= len(s+"(") && strings.Index(input, s+"(") != -1 {
+ candidatePath := string("")
+ restOfLine := string("")
+ indexes := pathExtractor(input)
+ for _, index := range indexes {
+ candidatePath = input[index[0]:index[1]]
+ if len(input) >= len(candidatePath+"(") && strings.Index(input, candidatePath+"(") != -1 {