From 2a7d25500e08bda2c0a9f26e45dd8c45a827a6da Mon Sep 17 00:00:00 2001 From: Insality Date: Tue, 14 Oct 2025 00:34:44 +0300 Subject: [PATCH] Solve #329 Allow numeric characters in RichText tags --- druid/custom/rich_text/module/rt_parse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == "/"