summaryrefslogtreecommitdiff
path: root/doc/it/weechat_plugin_api.it.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/it/weechat_plugin_api.it.adoc')
-rw-r--r--doc/it/weechat_plugin_api.it.adoc12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index 05d7ac51a..29caf8d25 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -2113,11 +2113,19 @@ expanded to last):
`+prefix<TAB>message+` +
`+©+`
-| `+${hide:x,value}+` |
- String with hidden chars (all chars in `value` replaced `x`). |
+| `+${hide:x,string}+` |
+ String with hidden chars (all chars in `string` replaced `x`). |
`+${hide:*,password}+` |
`+********+`
+| `+${cut:max,suffix,string}+` +
+ (_WeeChat ≥ 1.8_) |
+ String with `max` chars displayed, and optional `suffix` if string is cut. |
+ `+${cut:4,…,this is a test}+` +
+ `+${cut:2,>>,àéçôî}+` |
+ `+this…+` +
+ `+àé>>+`
+
| `+${re:N}+` |
Regex captured group: `0` = whole string matching, `1` to `99` = group
captured, `+++` = last group captured. |