Browse Source

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>
20.05.x
Jonathan Druart 1 year ago
committed by Martin Renvoize
parent
commit
43dd880d4f
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      t/00-valid-xml.t

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

Loading…
Cancel
Save