From b613e8e77fa7100c43944a61d2bd79ea10a8e8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sat, 15 Feb 2020 10:59:26 +0100 Subject: [PATCH] Fix regex dot escape --- config/jsdoc/api/template/static/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js index 894b822242..f47d626ff1 100644 --- a/config/jsdoc/api/template/static/scripts/main.js +++ b/config/jsdoc/api/template/static/scripts/main.js @@ -12,7 +12,7 @@ $(function () { } catch (e) { } // In case of invalid regexp fall back to non-regexp, but still allow . to match / - return makeRe(searchTerm.replace(/\./g, '/').replace(/[.*+?^${}()|[\]\\]/g, '\\$&')); + return makeRe(searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&').replace(/\\\./g, '[./]')); } function getWeightFunction(searchTerm, allowRegex) {