X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=extractor.go;h=3183109418b35e00912f87c1420e5a98e7e0b569;hb=HEAD;hp=a17bf8a69cee0209dc03c37be21a073683c84dcc;hpb=67804d252b630bd24c8188307fd8ef76a152c7ef;p=path-extractor.git diff --git a/extractor.go b/extractor.go index a17bf8a..3183109 100644 --- a/extractor.go +++ b/extractor.go @@ -9,7 +9,7 @@ type MatchOptions struct { } func pathExtractor(input string) [][]int { - surroundRegex := "[@~\\-_a-zA-Z/.0-9]*" + surroundRegex := "[@~\\-_a-zA-ZА-Яа-яЁё/.0-9]*" r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")") return r.FindAllSubmatchIndex([]byte(input), -1) }