summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/trigger/trigger-command.c')
-rw-r--r--src/plugins/trigger/trigger-command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c
index 8bf4c9b57..9601c0297 100644
--- a/src/plugins/trigger/trigger-command.c
+++ b/src/plugins/trigger/trigger-command.c
@@ -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"