summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/html.go b/html/html.go
index 01ae9c4..2bbe921 100644
--- a/html/html.go
+++ b/html/html.go
@@ -17,7 +17,7 @@ type Tag struct {
var (
tag Parser
- identifier = NoAutoWS(Merge(Seq(WS(), Chars("a-zA-Z", 1), Chars("a-zA-Z0-9", 0))))
+ identifier = Regex("[a-zA-Z][a-zA-Z0-9]*")
text = Map(NotChars("<>"), func(n Result) Result {
return Result{Result: n.Token}
})