summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/parse.c b/Src/parse.c
index dd38bfdce..4fc592075 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2125,7 +2125,7 @@ par_cond_triple(char *a, char *b, char *c)
 	ecstr(c);
 	ecadd(ecnpats++);
     } else if ((b[0] == Equals || b[0] == '=') &&
-               (b[1] == '~' || b[1] == Tilde) && ~b[2]) {
+               (b[1] == '~' || b[1] == Tilde) && !b[2]) {
 	ecadd(WCB_COND(COND_REGEX, 0));
 	ecstr(a);
 	ecstr(c);