diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-01-26 10:15:35 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-01-26 10:15:35 +0100 |
commit | 6d217ca8c54b53a3741992c63eefb704fc9de906 (patch) | |
tree | 6ed90c91b7a6e162c29ed8e15e084a4d54c98214 /doc/de/autogen/user/trigger_commands.adoc | |
parent | 73a4901fe1f3ed884efcbb49d204d1466215f89c (diff) | |
download | weechat-6d217ca8c54b53a3741992c63eefb704fc9de906.zip |
doc: fix regex examples to be compatible with FreeBSD
The following special sequences are not supported in regular expressions on
FreeBSD:
- "\w": replaced with "[a-zA-Z0-9_]"
- "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice
only spaces could be a problem when we use this sequence).
Diffstat (limited to 'doc/de/autogen/user/trigger_commands.adoc')
-rw-r--r-- | doc/de/autogen/user/trigger_commands.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/de/autogen/user/trigger_commands.adoc b/doc/de/autogen/user/trigger_commands.adoc index 8fa9e65d5..244d07f26 100644 --- a/doc/de/autogen/user/trigger_commands.adoc +++ b/doc/de/autogen/user/trigger_commands.adoc @@ -75,7 +75,7 @@ Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausge Beispiele (die standardmäßig, eingebauten Trigger kann man sich mit "/trigger listdefault" anzeigen lassen): fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu: - /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/" + /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/" verbirgt die Nicklist auf kleineren Terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" |