From 9b8c473a5dfe8e6f4b313738cfa6a41fd846a138 Mon Sep 17 00:00:00 2001 From: soh_cah_toa Date: Tue, 27 Sep 2011 00:57:03 -0400 Subject: [PATCH] Added ^ and $ anchors to the regex used to parse the release version in auto_release.pl. Without them, a number like 1.2.3.4.5.6 would otherwise be acceptable. --- tools/release/auto_release.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/release/auto_release.pl b/tools/release/auto_release.pl index dbfd9d957e..0ba7e84d59 100644 --- a/tools/release/auto_release.pl +++ b/tools/release/auto_release.pl @@ -113,7 +113,7 @@ =head1 SEE ALSO # Parse version number stop('Release version must be of the form a.b.c (e.g. 3.8.0)') - if $version !~ /(\d+)\.(\d+)\.(\d+)/; + if $version !~ /^(\d+)\.(\d+)\.(\d+)$/; # Prompt user to begin packaging release while (1) {