From: Paul Donald Date: Tue, 30 Jan 2024 18:31:38 +0000 (+0100) Subject: luci-base: Code quality fixes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4c2090afd865045e3693b84318de3b56f658e48a;p=openwrt-luci.git luci-base: Code quality fixes handle (possibly incorrect) comment variants Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 5502dfed25..98dc5add59 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -1601,7 +1601,7 @@ var UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ { markup = null; if (tpl) - markup = (tpl.textContent || tpl.innerHTML || tpl.firstChild.data).replace(/^$/, '').trim(); + markup = (tpl.textContent || tpl.innerHTML || tpl.firstChild.data).replace(/^