From ead37ade73cf77d23d83fc163c39508b9aa18403 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 30 Jan 2024 19:31:38 +0100 Subject: [PATCH] luci-base: Code quality fixes handle (possibly incorrect) comment variants Signed-off-by: Paul Donald (cherry picked from commit 4c2090afd865045e3693b84318de3b56f658e48a) --- 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 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(/^