From 174963a6acc7440d70afa33a4bbc745622cf3353 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 --- 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.11.0