Fixed search highlighting for numbers (#1776)

Additional fix for #1773 to include highlighting integers.
This commit is contained in:
michael-nok 2020-06-26 01:32:43 -04:00 committed by GitHub
parent e2d8a0e3ca
commit 343170f364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */