diff --git a/strings.arc b/strings.arc index a28b2fe..1d3b010 100644 --- a/strings.arc +++ b/strings.arc @@ -83,7 +83,7 @@ (if (isa pat 'fn) (for i start (- (len seq) 1) (when (pat (seq i)) (throw i))) - (for i start (- (len seq) (- (len pat) 2)) + (for i start (- (len seq) (len pat) 1) (when (headmatch pat seq i) (throw i)))) nil))
-----