From 3e6d7539cc1290bed4cfb99e89c64dc0472ab4b3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 15 Nov 2004 20:45:03 +0000 Subject: [PATCH] fix quoting of characters in regex: Fuse::DBI will now work correctly with parens and other characters which have special meaning in regexps git-svn-id: svn://svn.rot13.org/fuse_dbi/trunk@32 17f4e80c-d0e0-0310-8903-bfc3ae804c12 --- DBI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBI.pm b/DBI.pm index c94a5e3..ddc083f 100755 --- a/DBI.pm +++ b/DBI.pm @@ -342,7 +342,7 @@ sub e_getdir { my %out; foreach my $f (sort keys %files) { if ($dirname) { - if ($f =~ s/^\E$dirname\Q\///) { + if ($f =~ s/^\Q$dirname\E\///) { $out{$f}++ if ($f =~ /^[^\/]+$/); } } else { -- 2.20.1