From 343170f364d836fc35d5774adfcaa94b84a568f0 Mon Sep 17 00:00:00 2001 From: michael-nok <67281799+michael-nok@users.noreply.github.com> Date: Fri, 26 Jun 2020 01:32:43 -0400 Subject: [PATCH] Fixed search highlighting for numbers (#1776) Additional fix for #1773 to include highlighting integers. --- src/assets/javascripts/integrations/search/highlighter/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/integrations/search/highlighter/index.ts b/src/assets/javascripts/integrations/search/highlighter/index.ts index e9f38c89d..99f6d16c4 100644 --- a/src/assets/javascripts/integrations/search/highlighter/index.ts +++ b/src/assets/javascripts/integrations/search/highlighter/index.ts @@ -71,7 +71,7 @@ export function setupSearchHighlighter( /* Return factory function */ return (value: string) => { value = value - .replace(/[\s*+-:~^]+/g, " ") + .replace(/[\s*+\-:~^]+/g, " ") .trim() /* Create search term match expression */