From ed337d929162a32a947a3c812f1d4516072a6737 Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Tue, 18 Aug 2015 15:19:37 +0300 Subject: [PATCH] core: document extra option in eval_expression --- doc/en/weechat_plugin_api.en.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 2398e45e7..d867a5d92 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -1943,6 +1943,10 @@ Arguments: parentheses are used, result is a boolean ("0" or "1") ** 'prefix': prefix before variables to replace (default: "${") ** 'suffix': suffix after variables to replace (default: "}") +** 'extra': default behavior is to just replace extra variables ('extra_vars'), + other behavior can be selected: +*** 'eval': extra variables ('extra_vars') are evaluated themselves before + replacing ** 'regex': a regex used to replace text in 'expr' (which is then not evaluated) ** 'regex_replace': the replacement text to use with 'regex', to replace