diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-19 23:59:04 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-19 23:59:04 +0000 |
commit | 788105e2a73a3be0f9a05a390702ee28318a5673 (patch) | |
tree | d0382a4fcbf24d1ed6a9d7da65aa0335c1a9870b | |
parent | 321bf7ec19641d12626c71f87792b4edf40aa306 (diff) | |
download | ikiwiki-788105e2a73a3be0f9a05a390702ee28318a5673.tar ikiwiki-788105e2a73a3be0f9a05a390702ee28318a5673.tar.gz |
glob2re: return a precompiled, anchored case-insensitive regex
In practice every use of glob2re uses it like that.
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 57e23fda8..bb7d46ccf 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2388,7 +2388,7 @@ sub glob2re ($) { my $re=quotemeta(shift); $re=~s/\\\*/.*/g; $re=~s/\\\?/./g; - return $re; + return qr/^$re$/i; } package IkiWiki::FailReason; |