Singular and plural sentences
This commit is contained in:
@@ -10,8 +10,11 @@ class WpVersion < WpItem
|
||||
vulnerabilities = self.vulnerabilities
|
||||
|
||||
unless vulnerabilities.empty?
|
||||
puts "#{critical('[!]')} #{vulnerabilities.size} vulnerabilities identified from the version number"
|
||||
|
||||
if vulnerabilities.size == 1
|
||||
puts "#{critical('[!]')} #{vulnerabilities.size} vulnerability identified from the version number"
|
||||
else
|
||||
puts "#{critical('[!]')} #{vulnerabilities.size} vulnerabilities identified from the version number"
|
||||
end
|
||||
vulnerabilities.output
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user