OK leading v is best practice

This commit is contained in:
2022-01-16 23:02:29 +10:30
parent 7836f2ffbf
commit f5e438602f
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ open my $fh, "<", "main.go" || die $!;
my $version;
while (<$fh>) {
# CurrentVersion: "v0.04"
$version = $1 if /CurrentVersion\s*=\s*"([\d\.]+)"/;
$version = $1 if /CurrentVersion\s*=\s*"(v[\d\.]+)"/;
}
close $fh;