diff --git a/src/Jackett.Common/Content/custom.js b/src/Jackett.Common/Content/custom.js index 61fc3c0e7..84cdda174 100644 --- a/src/Jackett.Common/Content/custom.js +++ b/src/Jackett.Common/Content/custom.js @@ -1256,7 +1256,7 @@ function setSavedPresets(presets) { } function setSavePresetsButtonState(table, element, state = false) { - var button = element.find("button[id=jackett-search-results-datatable_savepreset_button]") + var button = element.find("button[id=jackett-search-results-datatable_savepreset_button]") if (state) { button.attr("class", "btn btn-danger btn-sm"); button.on("click", function () { @@ -1403,6 +1403,8 @@ function updateSearchResultTable(element, results) { newKeyword = "^((?!" + $.fn.dataTable.util.escapeRegex(keyword.substring(1)) + ").)*$"; else newKeyword = '(' + keyword.split('|').map(k => $.fn.dataTable.util.escapeRegex(k)).join('|') + ')'; + // fix search filters with "-", "." or "_" characters in the middle of the word => #13628 + newKeyword = newKeyword.replace("\\-", "\\-\u200B?").replace("\\.", "\\.\u200B?").replace("_", "_\u200B?"); newKeywords.push(newKeyword); }); var filterText = newKeywords.join(" "); diff --git a/src/Jackett.Common/Content/index.html b/src/Jackett.Common/Content/index.html index 46b41d695..c56fb027d 100644 --- a/src/Jackett.Common/Content/index.html +++ b/src/Jackett.Common/Content/index.html @@ -756,6 +756,6 @@ - +