mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
version.pl: snapshot releases *only* have digits in the tail
Snapshot releases have *only* digits in the tail. "git describe" produces tails that have digits in them, but aren't numeric. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
4b9358928b
commit
b6e36102e6
@ -60,7 +60,7 @@ if ( $line =~ /^([0-9]+)\.([0-9]+)(.*)$/ ) {
|
||||
die "$0: Invalid input format\n";
|
||||
}
|
||||
|
||||
if ($tail =~ /^\-([0-9]+)/) {
|
||||
if ($tail =~ /^\-([0-9]+)$/) {
|
||||
$snapshot = $1;
|
||||
} else {
|
||||
undef $snapshot;
|
||||
|
Loading…
Reference in New Issue
Block a user