From 5647a7645739fa2aa2dea4fe059b4efe84a278bc Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Tue, 2 Jun 2026 21:31:50 +0200 Subject: seems to work --- test-cases/case2_lookahead/script.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test-cases/case2_lookahead') diff --git a/test-cases/case2_lookahead/script.sh b/test-cases/case2_lookahead/script.sh index 1a2226b..a77eb85 100644 --- a/test-cases/case2_lookahead/script.sh +++ b/test-cases/case2_lookahead/script.sh @@ -36,3 +36,15 @@ match x1 aa no match x1 ax no match x1 axx no match x1 aax no + +fun x2 { + case $1 { + x(?=foo)(?=...bar).* { echo yes } + .* { echo no } + } +} +match x2 xfoobar yes +match x2 xfoobar_some_more_stuff yes +match x2 x___bar no +match x2 xfoo___ no +match x2 xfoo no -- cgit v1.2.3