mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Manual xo fixes and suppressions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -242,13 +242,9 @@ function addGroup() {
|
||||
.escapeHtml($("#new_name"))
|
||||
.val()
|
||||
.match(/(?:[^\s"]+|"[^"]*")+/g)
|
||||
.map(name => {
|
||||
return name.replaceAll(/(^"|"$)/g, "");
|
||||
});
|
||||
.map(name => name.replaceAll(/(^"|"$)/g, ""));
|
||||
// Remove empty elements
|
||||
names = names.filter(el => {
|
||||
return el !== "";
|
||||
});
|
||||
names = names.filter(el => el !== "");
|
||||
const groupStr = JSON.stringify(names);
|
||||
|
||||
utils.disableAll();
|
||||
|
||||
Reference in New Issue
Block a user