Skip to content

Add the ability to parse CWE/cwe-{number} format for external identifier

Subashis Chakraborty requested to merge 357008-fix-training-url into master

Right now what we are using in security training url finder only supports number but after this fix this will support both "89" and "CWE-89" (cwe-89) format so that we can derive mapping key for external call for provider properly.

pry(main)> "cwe-24".split('-').last
=> "24"
pry(main)> "24".split('-').last
=> "24"

Will work for both format:

Screen_Shot_2022-04-04_at_2.53.14_PM

Related to #357008

Edited by Doug Stull

Merge request reports