From 43dd880d4fc4cd4e1214113c31f9a865b183b75b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Feb 2020 17:01:06 +0100 Subject: [PATCH] Bug 24494: Make the regex more exact Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- t/00-valid-xml.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/00-valid-xml.t b/t/00-valid-xml.t index d19b4e68d1..4cc8d9dd89 100644 --- a/t/00-valid-xml.t +++ b/t/00-valid-xml.t @@ -30,7 +30,7 @@ find({ no_chdir => 1, wanted => sub { my $file = $_; - return if $file =~ /node_modules/i; + return if $file =~ m|/node_modules/|i; return unless $file =~ /(\.xml|\.xsl|\.xslt|\.xsd)$/i; my $dom; eval { $dom = $parser->parse_file($file); }; -- 2.20.1