]> Sergey Matveev's repositories - path-extractor.git/blobdiff - extractor.go
Update tests and extractor
[path-extractor.git] / extractor.go
index ad83d6eacf648a8ef98136f9534a92f97bf04e44..4dce18fbbb77923a2c2f77ca1b37c49821bb6730 100644 (file)
@@ -9,7 +9,7 @@ type MatchOptions struct {
 }
 
 func pathExtractor(input string) [][][]byte {
-       surroundRegex := "[^]\\^\\+()!#[ \\t:'\"\\\\=]*"
+       surroundRegex := "[@~\\-a-zA-Z/.0-9]*"
        r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")")
        temp := [][][]byte{}
        temp = r.FindAllSubmatch([]byte(input), -1)