Skip to content

Commit

Permalink
fix: remove leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Nov 21, 2023
1 parent 25f60ec commit e0d0258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private boolean processDatafeed(String nvdDataFeedUrl) throws UpdateException {
String pattern = null;
if (nvdDataFeedUrl.endsWith(".json.gz")) {
final int lio = nvdDataFeedUrl.lastIndexOf("/");
pattern = nvdDataFeedUrl.substring(lio);
pattern = nvdDataFeedUrl.substring(lio + 1);
url = nvdDataFeedUrl.substring(0, lio);
} else {
url = nvdDataFeedUrl;
Expand Down

0 comments on commit e0d0258

Please sign in to comment.