}
func pathExtractor(input string) [][][]byte {
- surroundRegex := "[@~\\-a-zA-Z/.0-9]*"
+ surroundRegex := "[@~\\-_a-zA-Z/.0-9]*"
r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")")
temp := [][][]byte{}
temp = r.FindAllSubmatch([]byte(input), -1)
t.Errorf("Doesn't match statement correctly", output)
}
+ output = GetAllMatches("/usr_b/bin", MatchOptions{})
+ if output[0] != "/usr_b/bin" {
+ t.Errorf("Doesn't match statement correctly", output)
+ }
+
output = GetAllMatches("\"/usr/bin", MatchOptions{})
if output[0] != "/usr/bin" {
t.Errorf("Doesn't match statement correctly", output)