]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/xmode/marker/marker.factor
Fix an XMode bug exposed in the pastebin
[factor.git] / basis / xmode / marker / marker.factor
index f584756f33c68f41323d4a4641ef578d84eb317b..98b4f91f86541ca0411f170edb40a33afc8f53b0 100755 (executable)
@@ -84,7 +84,7 @@ M: string-matcher text-matches?
     ] keep string>> length and ;
 
 M: regexp text-matches?
-    [ >string ] dip re-contains? ;
+    [ >string ] dip first-match to>> ;
 
 : rule-start-matches? ( rule -- match-count/f )
     dup start>> tuck swap can-match-here? [