mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added missing escape characters to search separators
This commit is contained in:
parent
f310d3f503
commit
3666d09c8d
@ -102,7 +102,7 @@ The following configuration options are supported:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- search:
|
- search:
|
||||||
separator: '[\s\-\.]' # (1)!
|
separator: '[\\s\\-\\.]' # (1)!
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Tokenization itself is carried out by [lunr's default tokenizer], which
|
1. Tokenization itself is carried out by [lunr's default tokenizer], which
|
||||||
@ -186,7 +186,7 @@ documents are tokenized:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- search:
|
- 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:
|
The following section explains what can be achieved with tokenizer lookahead:
|
||||||
|
@ -1119,7 +1119,7 @@ was renamed to `separator`:
|
|||||||
``` yaml
|
``` yaml
|
||||||
plugins:
|
plugins:
|
||||||
- search:
|
- search:
|
||||||
separator: '[\s\-\.]+'
|
separator: '[\\s\\-\\.]+'
|
||||||
lang:
|
lang:
|
||||||
- en
|
- en
|
||||||
- de
|
- de
|
||||||
@ -1132,7 +1132,7 @@ was renamed to `separator`:
|
|||||||
extra:
|
extra:
|
||||||
search:
|
search:
|
||||||
language: en, de, ru
|
language: en, de, ru
|
||||||
tokenizer: '[\s\-\.]+'
|
tokenizer: '[\\s\\-\\.]+'
|
||||||
```
|
```
|
||||||
|
|
||||||
[plugin options]: setup/setting-up-site-search.md#built-in-search-plugin
|
[plugin options]: setup/setting-up-site-search.md#built-in-search-plugin
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"meta.source": "來源",
|
"meta.source": "來源",
|
||||||
"search.config.lang": "ja",
|
"search.config.lang": "ja",
|
||||||
"search.config.pipeline": "trimmer, stemmer",
|
"search.config.pipeline": "trimmer, stemmer",
|
||||||
"search.config.separator": "[\,\。]+",
|
"search.config.separator": "[\\,\\。]+",
|
||||||
"search.placeholder": "搜尋",
|
"search.placeholder": "搜尋",
|
||||||
"search.result.initializer": "正在初始化搜尋引擎",
|
"search.result.initializer": "正在初始化搜尋引擎",
|
||||||
"search.result.placeholder": "鍵入以開始檢索",
|
"search.result.placeholder": "鍵入以開始檢索",
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"nav.title": "导航栏",
|
"nav.title": "导航栏",
|
||||||
"search.config.lang": "ja",
|
"search.config.lang": "ja",
|
||||||
"search.config.pipeline": "trimmer, stemmer",
|
"search.config.pipeline": "trimmer, stemmer",
|
||||||
"search.config.separator": "[\,\。]+",
|
"search.config.separator": "[\\,\\。]+",
|
||||||
"search.placeholder": "搜索",
|
"search.placeholder": "搜索",
|
||||||
"search.share": "分享",
|
"search.share": "分享",
|
||||||
"search.reset": "清空当前内容",
|
"search.reset": "清空当前内容",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"meta.source": "來源",
|
"meta.source": "來源",
|
||||||
"search.config.lang": "ja",
|
"search.config.lang": "ja",
|
||||||
"search.config.pipeline": "trimmer, stemmer",
|
"search.config.pipeline": "trimmer, stemmer",
|
||||||
"search.config.separator": "[\,\。]+",
|
"search.config.separator": "[\\,\\。]+",
|
||||||
"search.placeholder": "搜尋",
|
"search.placeholder": "搜尋",
|
||||||
"search.result.initializer": "正在初始化搜尋引擎",
|
"search.result.initializer": "正在初始化搜尋引擎",
|
||||||
"search.result.placeholder": "鍵入以開始檢索",
|
"search.result.placeholder": "鍵入以開始檢索",
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
"nav.title": "导航栏",
|
"nav.title": "导航栏",
|
||||||
"search.config.lang": "ja",
|
"search.config.lang": "ja",
|
||||||
"search.config.pipeline": "trimmer, stemmer",
|
"search.config.pipeline": "trimmer, stemmer",
|
||||||
"search.config.separator": "[\,\。]+",
|
"search.config.separator": "[\\,\\。]+",
|
||||||
"search.placeholder": "搜索",
|
"search.placeholder": "搜索",
|
||||||
"search.share": "分享",
|
"search.share": "分享",
|
||||||
"search.reset": "清空当前内容",
|
"search.reset": "清空当前内容",
|
||||||
|
Loading…
Reference in New Issue
Block a user