mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
core: add wildcard matching operators to eval (closes #608)
This commit is contained in:
committed by
Sébastien Helleu
parent
a9f6c34fae
commit
1329dfb57a
@@ -7254,6 +7254,8 @@ command_init ()
|
||||
" > greater\n"
|
||||
" =~ is matching POSIX extended regex\n"
|
||||
" !~ is NOT matching POSIX extended regex\n"
|
||||
" =* is matching wildcard mask\n"
|
||||
" !* is NOT matching wildcard mask\n"
|
||||
"\n"
|
||||
"An expression is considered as \"true\" if it is not NULL, not "
|
||||
"empty, and different from \"0\".\n"
|
||||
@@ -7326,7 +7328,8 @@ command_init ()
|
||||
" /eval -n -c abcd =~ ^ABC ==> 1\n"
|
||||
" /eval -n -c abcd =~ (?-i)^ABC ==> 0\n"
|
||||
" /eval -n -c abcd =~ (?-i)^abc ==> 1\n"
|
||||
" /eval -n -c abcd !~ abc ==> 0"),
|
||||
" /eval -n -c abcd !~ abc ==> 0\n"
|
||||
" /eval -n -c abcd =* a*d ==> 1"),
|
||||
"-n|-s|-c -n|-s|-c",
|
||||
&command_eval, NULL, NULL);
|
||||
hook_command (
|
||||
|
||||
Reference in New Issue
Block a user