From 53f4de8f47b3f28498fdcfa1e7b3b071e977587f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 1 Jul 2009 12:24:50 +0200 Subject: [PATCH] =?utf8?q?Test=20auf=20=C3=9Cbereinstimmung=20mit=20regul?= =?utf8?q?=C3=A4ren=20Ausdr=C3=BCcken=20in=20<%if...%>-Bl=C3=B6cken=20ohne?= =?utf8?q?=20Ber=C3=BCcksichtigung=20der=20Gro=C3=9F-=20und=20Kleinschreib?= =?utf8?q?ung.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Template.pm b/SL/Template.pm index c0f54cc29..6dce41b44 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -384,13 +384,13 @@ sub parse_block { if ($operator_type) { my $compare_to = $bareword ? $self->_get_loop_variable($bareword, 0, @indices) : $quoted_word; if ($operator_type eq '=') { - $hit = ($not && !($value eq $compare_to)) || (!$not && ($value eq $compare_to)); + $hit = ($not && !($value eq $compare_to)) || (!$not && ($value eq $compare_to)); } else { - $hit = ($not && !($value =~ m/$compare_to/)) || (!$not && ($value =~ m/$compare_to/)); + $hit = ($not && !($value =~ m/$compare_to/i)) || (!$not && ($value =~ m/$compare_to/i)); } } else { - $hit = ($not && ! $value) || (!$not && $value); + $hit = ($not && ! $value) || (!$not && $value); } if ($hit) { -- 2.20.1