diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-11-11 18:22:00 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-11-11 19:52:19 +0000 |
commit | 7ad1a2b2cc57b5f4bcb59186a9a8abcbed9f4f76 (patch) | |
tree | 5872f7fd3de6384f962d5480d88f3501bbaa624c /test/scripts/0000-Basic | |
parent | e63825824cc406c160ccbf2b154c5d81b168604a (diff) |
Fix regex substring capture variables for null matches (again). Bug 2933
Broken-by: 59d66fdc13f0
Diffstat (limited to 'test/scripts/0000-Basic')
-rw-r--r-- | test/scripts/0000-Basic/0002 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 898f3b6bc..1efcb2adc 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -467,6 +467,8 @@ match: ${if match{abcd}{^\N([ab]+)(\w+)$\N}{$2$1}fail} match: ${if match{abcd}{^([ab]+)(\\w+)\$}{$2$1}fail} match: ${if match{wxyz}{^([ab]+)(\\w+)\$}{$2$1}fail} match: ${if match{abcd}{^([ab]+)(\\w+)\$}{$2[${if match{xyz}{(.*)}{$1}fail}]$1}fail} +# check for empty capture group +match: ${if match{abc}{\N^(\S+)\s*(\S.+)*$\N}{<$2>}{}} match_domain: ${if match_domain{a.b.c}{x.y.z:a.b.c:p.q.r}{yes}{no}} match_domain: ${if match_domain{a.b.c}{x.y.z:p.q.r}{yes}{no}} |