Allow numbers in tag names

HTML tags can contain numbers, like <h2>.

Bug: 71594
Change-Id: I3b7bbfa3aa8f41a28f8ce64086e4066ffda948b2
This commit is contained in:
Jackmcbarn 2014-10-03 07:52:17 -04:00
parent 8e22e0f1f8
commit ccba1c78f5

View file

@ -75,7 +75,7 @@ end
--
-- @param s
local function isValidTag( s )
return s:match( '^[a-zA-Z]+$' )
return s:match( '^[a-zA-Z0-9]+$' )
end
-- Escape a value, for use in HTML