]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
just test for existence of string
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 02:59:37 +0000 (21:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 02:59:37 +0000 (21:59 -0500)
src/tests/keywords/if-regex-match-named

index 5184e991bfbfab8d35a04c6b55b2cca9ac002be3..47dfb8cd1bd48d04c2ec3d81ca20d43a5a54352a 100644 (file)
@@ -7,7 +7,7 @@ update request {
 }
 
 # Check failure when no previous capture - full capture
-if ("%{regex:}" != "") {
+if ("%{regex:}") {
        test_fail
 }
 
@@ -20,7 +20,7 @@ update request {
 }
 
 # Check failure when no previous capture - named group
-if ("%{regex:foo}" != "") {
+if ("%{regex:foo}") {
        test_fail
 }
 
@@ -33,7 +33,7 @@ update request {
 }
 
 # Check failure when no previous capture - numbered group
-if ("%{regex:%{Tmp-Integer-1}}" != "") {
+if ("%{regex:%{Tmp-Integer-1}}") {
        test_fail
 }