ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/example-decoder
(Generate patch)

Comparing Convert-UUlib/example-decoder (file contents):
Revision 1.8 by root, Tue Oct 15 23:20:30 2002 UTC vs.
Revision 1.9 by root, Tue Dec 28 14:09:19 2004 UTC

39 local $_ = $_[0]; 39 local $_ = $_[0];
40 40
41 # the following rules are rather effective on some newsgroups, 41 # the following rules are rather effective on some newsgroups,
42 # like alt.binaries.games.anime, where non-mime, uuencoded data 42 # like alt.binaries.games.anime, where non-mime, uuencoded data
43 # is very common 43 # is very common
44
45 return $1 if /([a-z0-9_]{3,}\.[a-z]{3,4}(?:.\d+))/i;
44 46
45 # if we find some *.rar, take it as the filename 47 # if we find some *.rar, take it as the filename
46 return $1 if /(\S{3,}\.(?:[rstuvwxyz]\d\d|rar))\s/i; 48 return $1 if /(\S{3,}\.(?:[rstuvwxyz]\d\d|rar))\s/i;
47 49
48 # one common subject format 50 # one common subject format

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines