mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed search highlighting for numbers (#1776)
Additional fix for #1773 to include highlighting integers.
This commit is contained in:
parent
e2d8a0e3ca
commit
343170f364
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user