Age | Commit message (Collapse) | Author |
|
"modifier:name,data,string" (issue #60)
|
|
|
|
|
|
"calc:..." (issue #997)
|
|
|
|
|
|
|
|
"repeat:count,string" (closes #958)
|
|
|
|
|
|
|
|
|
|
#1204)
|
|
#1200)
|
|
|
|
A pointer to this structure is given as parameter in each eval function called:
- eval_replace_vars
- eval_expression_condition
- eval_replace_regex
|
|
|
|
evaluated values
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string ("cut:" and "cutscr:") (closes #963)
The format to use is one of:
- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}
With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
|
|
expressions
|
|
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
|
|
When extra variables are evaluated, to prevent infinite loop if the evaluated
variable is calling itself, it is removed from hashtable "extra_vars" before
evaluation.
|
|
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
after use
|
|
string_eval_expression() and command /eval
|
|
|
|
string_eval_expression() and command /eval (issue #388)
|
|
function string_eval_expression()
|
|
|
|
|
|
|
|
The syntax is: ${hide:char,string}.
All chars in string are replaced with char (which can be one or more chars).
|
|
|
|
|
|
The regex itself is not evaluated any more (so parentheses are kept).
Before the fix:
>> abcd =~ (?-i)^abc
== [0]
>> (abcd) =~ \(abcd\)
== [0]
After the fix:
>> abcd =~ (?-i)^abc
== [1]
>> (abcd) =~ \(abcd\)
== [1]
|
|
the regex
|
|
|