Fixes bug #11780: anchor filename regex to the end of the string.
This commit is contained in:
parent
05c287cfc7
commit
8f7bbdaa5d
3 changed files with 13 additions and 2 deletions
|
|
@ -172,7 +172,8 @@ sub fixFilenames {
|
|||
my $extension = $storage->getFileExtension($file);
|
||||
next FILE unless isIn($extension, qw/pl perl pm cgi php asp sh/);
|
||||
my $newFile = $file;
|
||||
$newFile =~ s/\.$extension/_$extension.txt/;
|
||||
#$newFile =~ s/\.$extension$/_$extension.txt/;
|
||||
$newFile =~ s/\.$extension$/_$extension.txt/;
|
||||
$storage->renameFile($file, $newFile);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue