]> Sergey Matveev's repositories - path-extractor.git/blobdiff - extractor.go
Add fix for lines having more text with ackmate
[path-extractor.git] / extractor.go
index e05ad4b93b50730c149315f98b68ec5655ba9fa7..2f764aa56183f02ddf6868fce4f23b87468297c3 100644 (file)
@@ -59,7 +59,7 @@ func GetAllMatches(input string, format string) []string {
 }
 
 func getCursorPosition(input string) string {
-       r := regexp.MustCompile("^(:[0-9]+(:[0-9]+)?)$")
+       r := regexp.MustCompile("^(:[0-9]+(:[0-9]+)?)")
        temp := [][]byte{}
        temp = r.FindSubmatch([]byte(input))
        if len(temp) <= 1 {