Explorar el Código

Added stripping on sq brackets

spesk1 hace 4 años
padre
commit
59a96948f2
Se han modificado 1 ficheros con 1 adiciones y 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;