summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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