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:
parent
088a610682
commit
3c45a6ac63
|
|
@ -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…
Reference in New Issue