Remove unneeded regex grouping.
authorVille Skyttä <ville.skytta@iki.fi>
Sun, 24 Apr 2011 12:59:20 +0000 (15:59 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 29 Apr 2011 05:49:29 +0000 (08:49 +0300)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
scripts/perl.prov

index 32f27f2..400cb19 100755 (executable)
@@ -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