From 64f4a3ff7423248cbec3339d4121e5da980b1266 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 26 Mar 2023 14:53:57 +0300 Subject: [PATCH] Work around hyphens not working in search --- docs/assets/js/vendor/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/assets/js/vendor/list.js b/docs/assets/js/vendor/list.js index 640decebad..b2e334c714 100644 --- a/docs/assets/js/vendor/list.js +++ b/docs/assets/js/vendor/list.js @@ -741,7 +741,8 @@ module.exports = function (_list) { }, setSearchString: function setSearchString(s) { s = _list.utils.toString(s).toLowerCase(); - s = s.replace(/[-[\]{}()*+?.,\\^$|#]/g, '\\$&'); // Escape regular expression characters + // FIXME XhmikosR removed `-` + s = s.replace(/[[\]{}()*+?.,\\^$|#]/g, '\\$&'); // Escape regular expression characters searchString = s; },