Bug 24494: Make the regex more exact

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2020-02-13 17:01:06 +01:00 committed by Joy Nelson
parent 088a610682
commit 3c45a6ac63
1 changed files with 1 additions and 1 deletions

View File

@ -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); };