From: agriffis Date: Tue, 12 Jul 2005 21:00:27 +0000 (-0000) Subject: Wrap variable interpolation in \Q and \E in regex #92966 X-Git-Tag: gentoolkit-0.2.4.3~287 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8663f9fa971ef0d78b8f908654730580a1e3b8c4;p=gentoolkit.git Wrap variable interpolation in \Q and \E in regex #92966 svn path=/; revision=225 --- diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index a06115c..03b5f25 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -219,7 +219,7 @@ close C; # When a package move occurs, the versions appear to be new even though they are # not. Trim them from @new_versions in that case. -@new_versions = grep { $text !~ /^\*$_\s/m } @new_versions; +@new_versions = grep { $text !~ /^\*\Q$_\E\s/m } @new_versions; # Check if we have any files left, otherwise re-insert ebuild list # (of course, both might be empty anyway)