summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSimmo Saan <simmo.saan@gmail.com>2017-04-29 17:04:44 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-04-29 17:04:44 +0200
commit1329dfb57ad6759316dfa366ec38176dfa59a837 (patch)
tree0cf5a041d7994f845336573279a531f8f85755bc /src/core/wee-command.c
parenta9f6c34faea12d16e7e2710ef106a8f144f0d5f5 (diff)
downloadweechat-1329dfb57ad6759316dfa366ec38176dfa59a837.zip
core: add wildcard matching operators to eval (closes #608)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 6496a0732..fcfcd4726 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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 (