mirror of
https://github.com/Insality/druid
synced 2025-11-26 10:50:54 +01:00
Solve #329 Allow numeric characters in RichText tags
This commit is contained in:
@@ -159,7 +159,7 @@ function M.parse(text, default_settings, style)
|
||||
end
|
||||
|
||||
-- parse the tag, split into name and optional parameters
|
||||
local endtag, name, params, empty = tag:match("<(/?)([%a_]+)=?(%S-)(/?)>")
|
||||
local endtag, name, params, empty = tag:match("<(/?)([%w_]+)=?(%S-)(/?)>")
|
||||
|
||||
local is_endtag = endtag == "/"
|
||||
local is_empty = empty == "/"
|
||||
|
||||
Reference in New Issue
Block a user