audit: version string should not be ambiguous with revision part
Closes Homebrew/homebrew#38810. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
2f757ee5aa
commit
64e07fc990
@ -847,6 +847,10 @@ class ResourceAuditor
|
|||||||
if version.to_s =~ /^v/
|
if version.to_s =~ /^v/
|
||||||
problem "version #{version} should not have a leading 'v'"
|
problem "version #{version} should not have a leading 'v'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if version.to_s =~ /_\d+$/
|
||||||
|
problem "version #{version} should not end with a underline and a number"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def audit_checksum
|
def audit_checksum
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user