Explorar o código

Added stripping on sq brackets

spesk1 %!s(int64=4) %!d(string=hai) anos
pai
achega
59a96948f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      strip_filename.pl

+ 1 - 1
strip_filename.pl

@@ -16,7 +16,7 @@ sub strip_filename($) {
 	foreach my $char ( @chars ) {
 		if ( $char =~ m/\s/ ) {
 			next;
-		} elsif ( $char =~ m/\(|\)|\\|\'|\$|\!|,/ ) {
+		} elsif ( $char =~ m/\(|\)|\\|\'|\$|\!|,|\[|\]/ ) {
 			next;
 		} else {
 			print $fh $char;