From d43b852a028b6c77f1641361bff3d96f0d0ef4a8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 May 2020 13:16:06 +0100 Subject: [Fix] Fix regexp selector and add flattening --- test/lua/unit/selectors.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua index dea80fdbf..cca1d1e5a 100644 --- a/test/lua/unit/selectors.lua +++ b/test/lua/unit/selectors.lua @@ -350,6 +350,10 @@ context("Selectors test", function() selector = "header('Subject'):gsub('a', 'b')", expect = {"Second, lower-cbsed hebder subject"} }, + ["header regexp first"] = { + selector = "header('Subject').regexp('.*').first", + expect = {"Second, lower-cased header subject"} + }, } for case_name, case in pairs(cases) do -- cgit v1.2.3