Skip to content

Commit

Permalink
Correct regex
Browse files Browse the repository at this point in the history
  • Loading branch information
John Collins authored and John Collins committed Oct 5, 2024
1 parent 0c5ac67 commit e8d2e47
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Biber.pm
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,12 @@ sub parse_ctrlfile {
$logger->info("Reading '$ctrl_file_path'");
my $buf = slurp_switchr($ctrl_file_path)->$*;
# Unicode NFD boundary, but not for filenames - leave these in OS form
$buf = join("\n", map {m/<bcf:datasource.+>([^<]+)/ ? $_ : NFD($_)} split(/\R\z/, $buf));

# Ensure $buf ends in new line.
$buf = join("\n",
map {m/<bcf:datasource.+>([^<]+)/ ? $_ : NFD($_)}
split(/\R/, $buf)
)
."\n";
# Read control file
require XML::LibXML::Simple;

Expand Down

0 comments on commit e8d2e47

Please sign in to comment.