X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=extractor.go;h=2f764aa56183f02ddf6868fce4f23b87468297c3;hb=a3d42517c735ba167571bda24be7337e7055512e;hp=e05ad4b93b50730c149315f98b68ec5655ba9fa7;hpb=6d1dd1099ee890f91afcb553e6dcdef8a65f0d0d;p=path-extractor.git diff --git a/extractor.go b/extractor.go index e05ad4b..2f764aa 100644 --- a/extractor.go +++ b/extractor.go @@ -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 {