Manual:$wgSearchHighlightBoundaries/zh
Appearance
| 搜索: $wgSearchHighlightBoundaries | |
|---|---|
| Regexp to match word boundaries |
|
| 引进版本: | 1.13.0 (r34210) |
| 移除版本: | 仍在使用 |
| 允许的值: | (regex string) |
| 默认值: | (参见下方) |
| 其他设置: 按首字母排序 | 按功能排序 | |
细节
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the words are not separate.
默认值
| MediaWiki版本: | ≥ 1.39 |
$wgSearchHighlightBoundaries = '[\\p{Z}\\p{P}\\p{C}]';
| MediaWiki版本: | 1.18 – 1.38 |
$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
| MediaWiki版本: | 1.13 – 1.17 |
$wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
: '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround