From d99942aa64d7da35847999808f99a068ad25213c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Jan 2024 11:52:54 +0000 Subject: config: glob2re: fix over-matching /**/foo Noticed while adding wildcard support to WwwCoderepo... --- lib/PublicInbox/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 33c59ec7..b8d3c485 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -662,7 +662,7 @@ sub squote_maybe ($) { } my %re_map = ( '*' => '[^/]*?', '?' => '[^/]', - '/**' => '/.*', '**/' => '.*/', '/**/' => '/.*?', + '/**' => '/.*', '**/' => '.*/', '/**/' => '(?:/.*?/|/)', '[' => '[', ']' => ']', ',' => ',' ); sub glob2re ($) { -- cgit v1.2.3-24-ge0c7