diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-08 17:58:20 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-08 17:58:20 -0400 |
commit | fc5c7916f175f0301b8e103a72825c7db1c79186 (patch) | |
tree | 41283448dab2c4b47ecf787e710e5a91aa46c94c | |
parent | daa7456f9c7a3166c5195831dffcca8412e5e5a6 (diff) |
Corrected tag matching bug
-rw-r--r-- | util.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |