Solve #329 Allow numeric characters in RichText tags

This commit is contained in:
Insality
2025-10-14 00:34:44 +03:00
parent 4341b5b3fc
commit 2a7d25500e

View File

@@ -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 == "/"