From 2520588d002f5b8eac4194fbf311e7495282d30b Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 11 Jan 2025 02:47:30 +0100 Subject: [PATCH] luci-base: fix createChoiceElement regex to catch closing tags with ! Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index f077b41253..bff9acc3c0 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -1598,7 +1598,7 @@ const UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ { let markup = null; if (tpl) - markup = (tpl.textContent ?? tpl.innerHTML ?? tpl.firstChild.data).replace(/^$/, '').trim(); + markup = (tpl.textContent ?? tpl.innerHTML ?? tpl.firstChild.data).replace(/^