From 67138188130af27cd2a82ddbcb0722d9dbb08269 Mon Sep 17 00:00:00 2001 From: Luigi D'Acunto Date: Tue, 23 Jun 2026 14:41:45 +0200 Subject: [PATCH] =?UTF-8?q?v2.12.4=20-=20Normalizza=20separatori=20nella?= =?UTF-8?q?=20ricerca=20folder:=20>,=20/=20e=20=E2=80=BA=20sono=20equivale?= =?UTF-8?q?nti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user_script/checkmk_swissknife.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/user_script/checkmk_swissknife.user.js b/user_script/checkmk_swissknife.user.js index fd8e1b7..d61a484 100644 --- a/user_script/checkmk_swissknife.user.js +++ b/user_script/checkmk_swissknife.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Checkmk SwissKnife // @namespace https://luigidacunto.com/ -// @version 2.12.3 +// @version 2.12.4 // @checkmk 2.3.x // @description Raccolta di miglioramenti all'interfaccia di Checkmk WATO. Ogni fix o enhancement viene aggiunto qui come feature indipendente. // @author Luigi D'Acunto @@ -273,10 +273,13 @@ function renderDropdown(filter) { dropdown.innerHTML = ''; const term = filter.trim().toLowerCase(); + // Normalizza separatori: >, ›, / sono equivalenti nella ricerca + const normTerm = term.replace(/\s*[>/›]\s*/g, '/'); const filtered = term ? options.filter(o => o.label.toLowerCase().includes(term) || - o.value.toLowerCase().includes(term) || + o.label.toLowerCase().replace(/\s*›\s*/g, '/').includes(normTerm) || + o.value.toLowerCase().includes(normTerm) || o.original.toLowerCase().includes(term) ) : options;