mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix mkheaders on files with Windows line endings.
This commit is contained in:
parent
c9a30a5acf
commit
84a3acc0d6
@ -87,7 +87,7 @@ for my $path (@paths) {
|
||||
for my $line (<$fh>) {
|
||||
$linenum += 1;
|
||||
chomp $line;
|
||||
if ($line =~ /^([^0-9A-Za-z]+\s)Copyright\s+\(C\)\s+[^<]+(\s+<[^>]+>)?$/) {
|
||||
if ($line =~ /^([^0-9A-Za-z]+\s)Copyright\s+\(C\)\s+[^<]+(\s+<[^>]+>)?[\r\s]*$/) {
|
||||
$copyright = scalar @lines;
|
||||
$indent = $1;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user