瀏覽代碼

Added stripping on sq brackets

spesk1 4 年之前
父節點
當前提交
59a96948f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;