Skip to content

Commit

Permalink
do not depend on the input record separator
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 5, 2015
1 parent a61b516 commit eaf239f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -31,7 +31,7 @@ use constant {
# To generate a new HTML entity table run this command
# perl examples/entities.pl
my %ENTITIES;
while (my $line = <DATA>) {
for my $line (split "\n", join('', <DATA>)) {
next unless $line =~ /^(\S+)\s+U\+(\S+)(?:\s+U\+(\S+))?/;
$ENTITIES{$1} = defined $3 ? (chr(hex $2) . chr(hex $3)) : chr(hex $2);
}
Expand Down

0 comments on commit eaf239f

Please sign in to comment.