From 9ec00f47520ac3c8ec00702f48133d400cd129c2 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 13 Nov 2023 18:04:31 +0100 Subject: [PATCH] Visual Selector - handle small bug where whitespace after the filter caused it to not be visualised --- changedetectionio/static/js/visual-selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/static/js/visual-selector.js b/changedetectionio/static/js/visual-selector.js index 32faaa04..9432ae9f 100644 --- a/changedetectionio/static/js/visual-selector.js +++ b/changedetectionio/static/js/visual-selector.js @@ -149,7 +149,7 @@ $(document).ready(function () { // @todo In the future paint all that match for (const c of current_default_xpath) { for (var i = selector_data['size_pos'].length; i !== 0; i--) { - if (selector_data['size_pos'][i - 1].xpath === c) { + if (selector_data['size_pos'][i - 1].xpath.trim() === c.trim()) { console.log("highlighting " + c); current_selected_i = i - 1; highlight_current_selected_i();