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