--- Convert-UUlib/example-decoder 2004/12/28 14:09:19 1.9 +++ Convert-UUlib/example-decoder 2004/12/28 21:32:27 1.10 @@ -42,8 +42,6 @@ # like alt.binaries.games.anime, where non-mime, uuencoded data # is very common - return $1 if /([a-z0-9_]{3,}\.[a-z]{3,4}(?:.\d+))/i; - # if we find some *.rar, take it as the filename return $1 if /(\S{3,}\.(?:[rstuvwxyz]\d\d|rar))\s/i; @@ -57,6 +55,9 @@ # - (20 files) No.17 Roseanne.jpg [2/2] return $1 if /No\.[ 0-9]+ (\S+\....) (?:\d+ bytes )?\[/; + # try to detetc some common forms of filenames + return $1 if /([a-z0-9_\-+.]{3,}\.[a-z]{3,4}(?:.\d+))/i; + # otherwise just pass what we have return (); };