Remove unneeded regex grouping.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
This commit is contained in:
Ville Skyttä 2011-04-24 15:59:20 +03:00 committed by Panu Matilainen
parent 2974af1466
commit 5d297141cd
1 changed files with 2 additions and 2 deletions

View File

@ -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