aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/filecheck.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-11-20 00:02:49 +0000
committerSimon McVittie <smcv@debian.org>2010-11-20 00:02:49 +0000
commit55515050e1f3aad13dc96796a347cefa98e8e472 (patch)
tree973ddcc14ee15b71cd950ff4dd5615885aa59284 /IkiWiki/Plugin/filecheck.pm
parent788105e2a73a3be0f9a05a390702ee28318a5673 (diff)
downloadikiwiki-55515050e1f3aad13dc96796a347cefa98e8e472.tar
ikiwiki-55515050e1f3aad13dc96796a347cefa98e8e472.tar.gz
make use of precompiled regex objects
Diffstat (limited to 'IkiWiki/Plugin/filecheck.pm')
-rw-r--r--IkiWiki/Plugin/filecheck.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/filecheck.pm b/IkiWiki/Plugin/filecheck.pm
index 3b0a7b314..4f4e67489 100644
--- a/IkiWiki/Plugin/filecheck.pm
+++ b/IkiWiki/Plugin/filecheck.pm
@@ -161,7 +161,7 @@ sub match_mimetype ($$;@) {
}
my $regexp=IkiWiki::glob2re($wanted);
- if ($mimetype!~/^$regexp$/i) {
+ if ($mimetype!~$regexp) {
return IkiWiki::FailReason->new("file MIME type is $mimetype, not $wanted");
}
else {