Procházet zdrojové kódy

Allow no-decimal sizes

Zachary Kotlarek před 14 roky
rodič
revize
d35d818113
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      findTorrent.pl

+ 1 - 1
findTorrent.pl

@@ -425,7 +425,7 @@ foreach my $tr (@trs) {
 	# Extract the size
 	my $size = 0;
 	my $unit = 'M';
-	if ($tr =~ m/(\d+\.\d+)\&nbsp\;(G|M)iB\<\/[tT][dD]\>/) {
+	if ($tr =~ m/(\d+(?:\.\d+)?)\&nbsp\;(G|M)iB\<\/[tT][dD]\>/) {
 		$size = $1;
 		$unit = $2;
 		if ($unit eq 'G') {