fix warnings on $BRANCH
[spider.git] / perl / DXCommandmode.pm
index e207b0df6da8515666e2e34720c9dbcbe72d3cc3..7371a8690ab781391150847d33b86d02747d0a9e 100644 (file)
@@ -53,7 +53,7 @@ $msgpolltime = 3600;                  # the time between polls for new messages
 
 use vars qw($VERSION $BRANCH);
 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/  || (0,0));
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /^\d+\.\d+(?:\.(\d+)\.(\d+))?$/  || (0,0));
 $main::build += $VERSION;
 $main::branch += $BRANCH;