filenames

use kebab-case for file names
remove camelCase and snake_case
This commit is contained in:
Milan
2019-10-17 20:22:10 +02:00
parent c93b394307
commit 9792336ac8
87 changed files with 74 additions and 78 deletions

View File

@@ -286,7 +286,7 @@ sub get_filename {
sub check_filename {
my $filename = shift;
my @valid_extensions = ( 'png', 'jpeg', 'jpg', 'gif', 'pdf', 'txt', 'bmp', 'ps', 'eps', 'wmf' );
my @valid_extensions = ( 'png', 'jpeg', 'jpg', 'gif', 'pdf', 'txt', 'bmp', 'ps', 'eps', 'wmf', 'svg' );
if ( $filename =~ /\.([a-zA-Z]{3,5})$/ ) {
my $extension = lc $1;
unless ( grep( /$extension/, @valid_extensions ) ) {