From: Ville Skyttä Date: Sun, 24 Apr 2011 12:59:20 +0000 (+0300) Subject: Remove unneeded regex grouping. X-Git-Tag: tznext/4.11.0.1.tizen20130304~1163 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d297141cd647c3cb0a8914e595c56d0ecc9447c;p=tools%2Flibrpm-tizen.git Remove unneeded regex grouping. Signed-off-by: Panu Matilainen --- diff --git a/scripts/perl.prov b/scripts/perl.prov index 32f27f2..400cb19 100755 --- a/scripts/perl.prov +++ b/scripts/perl.prov @@ -162,8 +162,8 @@ sub process_file { # '$Revision' this often causes bizarre strings and is the most # common method of non static numbering. - if (m/(\$Revision: (\d+[.0-9]+))/) { - $version = $2; + if (m/\$Revision: (\d+[.0-9]+)/) { + $version = $1; } elsif (m/['"]?(\d+[.0-9]+)['"]?/) { # look for a static number hard coded in the script