Permalink
Browse files

matching by regexps no by strings

  • Loading branch information...
1 parent 2738c1e commit 7c44951e19571b475897cc3fe5aaedd17b3ae4fb Zbigniew Lukasiak committed Oct 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Courriel/MMS.pm
View
@@ -81,7 +81,7 @@ sub _get_image_parts {
sub {
my $part = shift;
my $mime = $part->mime_type();
- return 1 if ($mime =~ 'image/(jpeg|gif|png)');
+ return 1 if ( $mime =~ qr{image/(jpeg|gif|png)} );
return;
}
);

0 comments on commit 7c44951

Please sign in to comment.