mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-02 18:58:42 -04:00
Added missing escape characters to search separators
This commit is contained in:
@@ -102,7 +102,7 @@ The following configuration options are supported:
|
||||
``` yaml
|
||||
plugins:
|
||||
- search:
|
||||
separator: '[\s\-\.]' # (1)!
|
||||
separator: '[\\s\\-\\.]' # (1)!
|
||||
```
|
||||
|
||||
1. Tokenization itself is carried out by [lunr's default tokenizer], which
|
||||
@@ -186,7 +186,7 @@ documents are tokenized:
|
||||
``` yaml
|
||||
plugins:
|
||||
- search:
|
||||
separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
|
||||
separator: "[\\s\\-,:!=\\[\\]()\"/]+|\\.(?!\\d)|&[lg]t;|(?!\\b)(?=[A-Z][a-z])"
|
||||
```
|
||||
|
||||
The following section explains what can be achieved with tokenizer lookahead:
|
||||
|
||||
@@ -1119,7 +1119,7 @@ was renamed to `separator`:
|
||||
``` yaml
|
||||
plugins:
|
||||
- search:
|
||||
separator: '[\s\-\.]+'
|
||||
separator: '[\\s\\-\\.]+'
|
||||
lang:
|
||||
- en
|
||||
- de
|
||||
@@ -1132,7 +1132,7 @@ was renamed to `separator`:
|
||||
extra:
|
||||
search:
|
||||
language: en, de, ru
|
||||
tokenizer: '[\s\-\.]+'
|
||||
tokenizer: '[\\s\\-\\.]+'
|
||||
```
|
||||
|
||||
[plugin options]: setup/setting-up-site-search.md#built-in-search-plugin
|
||||
|
||||
Reference in New Issue
Block a user