X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-tips;h=49e71d20c8e33729fa19e435acfa7a27ad3f93e6;hb=f5b1e1f68912fa1044a827d2529c945b03d54070;hp=01037307ed5537e8767260dca8aeae92adb416f3;hpb=88e5830ffeda09b306d37a17aa91a2c8c80f39a6;p=grml-tips.git diff --git a/grml-tips b/grml-tips index 0103730..49e71d2 100755 --- a/grml-tips +++ b/grml-tips @@ -85,10 +85,10 @@ my $tip = ''; my $tip_flag = 0; while (my $line = <$fh>) { - if ($line !~ /^--/) { + if ($line !~ /^-- $/) { $tip .= $line; } else { - if ( "$tip" =~ /$pattern/m ) { + if ( "$tip" =~ /$pattern/mi ) { $tip .= $line; print "$tip"; $tip = '';