mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 23:04:32 -04:00
Fixed search transform removing numbers from query
This commit is contained in:
@@ -49,7 +49,7 @@ export type SearchTransformFn = (value: string) => string
|
||||
*/
|
||||
export function defaultTransform(value: string): string {
|
||||
return value
|
||||
.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g, "")
|
||||
.replace(/(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g, "")
|
||||
.trim()
|
||||
.replace(/\s+|(?![^\x00-\x7F]|^)$|\b$/g, "* ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user