summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-08-08 17:58:20 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-08-08 17:58:20 -0400
commitfc5c7916f175f0301b8e103a72825c7db1c79186 (patch)
tree41283448dab2c4b47ecf787e710e5a91aa46c94c
parentdaa7456f9c7a3166c5195831dffcca8412e5e5a6 (diff)
Corrected tag matching bug
-rw-r--r--util.go2
1 files changed, 1 insertions, 1 deletions
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