mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-28 02:00:01 +00:00
Allow numbers in tag names
HTML tags can contain numbers, like <h2>. Bug: 71594 Change-Id: I3b7bbfa3aa8f41a28f8ce64086e4066ffda948b2
This commit is contained in:
parent
8e22e0f1f8
commit
ccba1c78f5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue