summaryrefslogtreecommitdiff
path: root/doc/de/autogen
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
commit6d217ca8c54b53a3741992c63eefb704fc9de906 (patch)
tree6ed90c91b7a6e162c29ed8e15e084a4d54c98214 /doc/de/autogen
parent73a4901fe1f3ed884efcbb49d204d1466215f89c (diff)
downloadweechat-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')
-rw-r--r--doc/de/autogen/user/trigger_commands.adoc2
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"