Browse Source

* Subtitle::BASE : strip BOM

master
Alex 'AdUser' Z 10 years ago
parent
commit
829337a72f
  1. 2
      lib/Subtitle/BASE.pm

2
lib/Subtitle/BASE.pm

@ -22,7 +22,7 @@ sub log {
sub chomp { sub chomp {
my ($self, $line) = @_; my ($self, $line) = @_;
return unless defined $line; return unless defined $line;
return $line =~ s/[\r\n]+$//or; return $line =~ s/(^\xEF\xBB\xBF|[\r\n]+$)//ogr;
} }
sub trim { sub trim {

Loading…
Cancel
Save