Skip to content

Commit

Permalink
fix list (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
segatomo authored Jun 4, 2020
1 parent 1c0215a commit 6b40f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (f FeedMeta) color(str string) string {
}

func (f FeedMeta) source() string {
if strings.Contains(f.URL, "nvdcve-1.0-") {
if strings.Contains(f.URL, "nvdcve-1.1-") {
return nvdjson
} else if strings.Contains(f.URL, "jvndb") {
return jvn
Expand All @@ -89,7 +89,7 @@ func (f FeedMeta) Year() (year string, xml bool, err error) {
switch f.source() {
case nvdjson:
return strings.TrimSuffix(
strings.Split(f.URL, "nvdcve-1.0-")[1], ".json.gz"), false, nil
strings.Split(f.URL, "nvdcve-1.1-")[1], ".json.gz"), false, nil
case jvn:
if strings.HasSuffix(f.URL, "jvndb.rdf") {
return "modified", true, nil
Expand Down

0 comments on commit 6b40f91

Please sign in to comment.