From 6d217ca8c54b53a3741992c63eefb704fc9de906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 26 Jan 2019 10:15:35 +0100 Subject: 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). --- doc/pl/autogen/user/trigger_commands.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/pl/autogen') diff --git a/doc/pl/autogen/user/trigger_commands.adoc b/doc/pl/autogen/user/trigger_commands.adoc index f3a075ca2..4a52cfb45 100644 --- a/doc/pl/autogen/user/trigger_commands.adoc +++ b/doc/pl/autogen/user/trigger_commands.adoc @@ -75,7 +75,7 @@ Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault): dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników): - /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}/" ukrywa pasek z nickami na małych terminalach: /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" -- cgit v1.2.3