From: Paul Donald Date: Tue, 30 Jan 2024 18:31:38 +0000 (+0100) Subject: luci-base: Code quality fixes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ead37ade73cf77d23d83fc163c39508b9aa18403;p=project%2Fluci.git luci-base: Code quality fixes handle (possibly incorrect) comment variants Signed-off-by: Paul Donald (cherry picked from commit 4c2090afd865045e3693b84318de3b56f658e48a) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 29810d5798..e2b993b0e2 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(/^