diff --git a/lib/MetaCPAN/Web/Controller/Source.pm b/lib/MetaCPAN/Web/Controller/Source.pm index 719ab7fc8c..e1a99c5ea3 100644 --- a/lib/MetaCPAN/Web/Controller/Source.pm +++ b/lib/MetaCPAN/Web/Controller/Source.pm @@ -93,7 +93,7 @@ sub detect_filetype { # No separate pod brush as of 2011-08-04. return 'perl' if /\. ( p[ml] | psgi | pod ) $/ix; - return 'perl' if /^ cpanfile $/ix; + return 'perl' if /^ (cpan|alien)file $/ix; return 'yaml' if /\. ya?ml $/ix;