]> gitweb.factorcode.org Git - factor.git/commitdiff
html.parser.analyzer: find-between* didn't always return a sequence, which in turn...
authorPhilipp Brüschweiler <blei42@gmail.com>
Fri, 13 Aug 2010 20:53:37 +0000 (22:53 +0200)
committerPhilipp Brüschweiler <blei42@gmail.com>
Fri, 13 Aug 2010 20:53:37 +0000 (22:53 +0200)
extra/html/parser/analyzer/analyzer.factor

index 760fd1e47be71078b531f1a051a03d4ba0bbc396..8a0801e5ec828e9a9b0b45e626a53c0b2a449742 100644 (file)
@@ -29,8 +29,7 @@ TUPLE: link attributes clickable ;
 : find-between* ( vector i/f tag/f -- vector )
     over integer? [
         [ tail-slice ] [ name>> ] bi*
-        dupd find-matching-close drop dup [ 1 + ] when
-        [ head ] [ first ] if*
+        dupd find-matching-close drop 0 or 1 + head
     ] [
         3drop V{ } clone
     ] if ; inline