1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

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).
This commit is contained in:
Sébastien Helleu
2019-01-26 10:15:35 +01:00
parent 73a4901fe1
commit 6d217ca8c5
30 changed files with 94 additions and 94 deletions
+3 -3
View File
@@ -1222,9 +1222,9 @@ trigger_command_init ()
" add text attributes *bold*, _underline_ and /italic/ (only in "
"user messages):\n"
" /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}/\"\n"
"\"==\\*([^ ]+)\\*==*${color:bold}${re:1}${color:-bold}*== "
"==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== "
"==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/\"\n"
" hide nicklist bar on small terminals:\n"
" /trigger add resize_small signal signal_sigwinch "
"\"${info:term_width} < 100\" \"\" \"/bar hide nicklist\"\n"