mirror of
https://github.com/Insality/druid.git
synced 2025-11-26 19:00:50 +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
|
end
|
||||||
|
|
||||||
-- parse the tag, split into name and optional parameters
|
-- 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_endtag = endtag == "/"
|
||||||
local is_empty = empty == "/"
|
local is_empty = empty == "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user