From fc5c7916f175f0301b8e103a72825c7db1c79186 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Thu, 8 Aug 2013 17:58:20 -0400 Subject: Corrected tag matching bug --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.go') diff --git a/util.go b/util.go index a1cf6f6..5043601 100644 --- a/util.go +++ b/util.go @@ -123,7 +123,7 @@ func htmlTokenize(htmlStr string) (list []htmlSegmentType) { tagRe, _ := regexp.Compile(`(?U)<.*>`) attrRe, _ := regexp.Compile(`([^=]+)=["']?([^"']+)`) capList := tagRe.FindAllStringIndex(htmlStr, -1) - if list != nil { + if capList != nil { var seg htmlSegmentType var parts []string pos := 0 -- cgit v1.2.1-24-ge1ad