瀏覽代碼

Just adding a few characters to the replace regex

spesk1 5 年之前
父節點
當前提交
11a7f84ffc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      download_archive_dot_org.pl

+ 1 - 1
download_archive_dot_org.pl

@@ -35,7 +35,7 @@ sub make_filename($) {
 	my $filename;
 	open(my $fh, ">>", \$filename);
 	foreach my $char ( split("",$name) ) {
-		if ( $char =~ m/[\s->']/ ) {
+		if ( $char =~ m/[\s->'\/\!\&\:]/ ) {
 			print $fh "";
 		} else {
 			print $fh "$char";