From c478a365d8479ca25f6a72d42ecd45dcb9e9569a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 30 Sep 2019 18:10:09 +0300 Subject: Make $regex.{match,search}() to return NULL for no match if return_match or return_match flag is specified --- tests/function/regex/testscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/function/regex/testscript') diff --git a/tests/function/regex/testscript b/tests/function/regex/testscript index 977d7b3..1fdb383 100644 --- a/tests/function/regex/testscript +++ b/tests/function/regex/testscript @@ -167,7 +167,7 @@ : failure : - $* <'' + $* <'[null]' print $regex.match(" bar", '([^\s]+)\s+([^\s]+)', return_subs) EOI } @@ -225,8 +225,8 @@ : failure : - $* <'' - print $regex.match(" bar", '([^\s]+)\s+([^\s]+)', return_subs) + $* <'[null]' + print $regex.search(" bar", '([^\s]+)\s+([^\s]+)', return_subs) EOI } @@ -247,7 +247,7 @@ : failure : - $* <'' + $* <'[null]' print $regex.search(" bar", '([^\s]+)\s+([^\s]+)', return_match) EOI } -- cgit v1.1