diff --git a/druid/custom/rich_text/module/rt_parse.lua b/druid/custom/rich_text/module/rt_parse.lua index 94de709..632380f 100755 --- a/druid/custom/rich_text/module/rt_parse.lua +++ b/druid/custom/rich_text/module/rt_parse.lua @@ -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 == "/"