Handbuch:$wgSearchHighlightBoundaries
Appearance
Suche: $wgSearchHighlightBoundaries | |
---|---|
Regexp to match word boundaries |
|
Eingeführt in Version: | 1.13.0 (r34210) |
Entfernt in Version: | Weiterhin vorhanden |
Erlaubte Werte: | (Regex-Zeichenkette) |
Standardwert: | (siehe unten) |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the words are not separate.
Standardwert
MediaWiki Version: | ≥ 1.39 |
$wgSearchHighlightBoundaries = '[\\p{Z}\\p{P}\\p{C}]';
MediaWiki Versions: | 1.18 – 1.38 |
$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
MediaWiki Versions: | 1.13 – 1.17 |
$wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
: '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround