Fix CVE-ID is truncated to 4 digits

This commit is contained in:
Takayuki Ushida
2016-08-20 21:23:31 +09:00
parent c8e7c8b9fa
commit b1f5bdd8b2
2 changed files with 2 additions and 2 deletions

View File

@@ -867,7 +867,7 @@ func (o *redhat) parseYumUpdateinfoHeaderAmazon(line string) (a models.DistroAdv
}
func (o *redhat) parseYumUpdateinfoLineToGetCveIDs(line string) []string {
re, _ := regexp.Compile(`(CVE-\d{4}-\d{4})`)
re, _ := regexp.Compile(`(CVE-\d{4}-\d{4,})`)
return re.FindAllString(line, -1)
}