Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Thanks!
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
filecheck.pm
diff --git
a/IkiWiki/Plugin/filecheck.pm
b/IkiWiki/Plugin/filecheck.pm
index 3b0a7b3148d4edc2bb5bf1c8d11af474dc28a1c7..4f4e67489a41c51ecae344119362f0ea611d481a 100644
(file)
--- a/
IkiWiki/Plugin/filecheck.pm
+++ b/
IkiWiki/Plugin/filecheck.pm
@@
-161,7
+161,7
@@
sub match_mimetype ($$;@) {
}
my $regexp=IkiWiki::glob2re($wanted);
}
my $regexp=IkiWiki::glob2re($wanted);
- if ($mimetype!~
/^$regexp$/i
) {
+ if ($mimetype!~
$regexp
) {
return IkiWiki::FailReason->new("file MIME type is $mimetype, not $wanted");
}
else {
return IkiWiki::FailReason->new("file MIME type is $mimetype, not $wanted");
}
else {