-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More about this vulnerability button don't work #54
Comments
Oh, looks like that field can be a comma-separated list of URLs. Should be fairly easy to resolve. |
I can fix it as #hacktoberfest issue |
@nprail can you help me? I see that we render this list by using I can't find in code where |
@dzienisz Here is a possible algorithm to determine if it is a comma separated list of URLs: const splitList = advisory.references.split(',')
let isUrlList = true
for (const urlItem of splitList) {
try {
new URL(urlItem)
} catch (err) {
// if new URL throws an error, than the item isn't a valid URL
isUrlList = false
}
}
// if any of the items do not parse as a URL then it probably isn't a comma-separated list of URLs
return isUrlList |
Hey @nprail currently I don't have time to do this. Anybody can take that. I see you stopped supporting this code. Do you plan to find another contributors or archive the project? |
The text was updated successfully, but these errors were encountered: