Open beruhan opened 3 years ago
Same problem unsolved until now 2024,
when use wfn format, the cpe is stored like ['"deltaww"']
, and when use fs it is stroed like ['deltaww']
print(c1.get_vendor(), CPE2_3(c1.as_wfn()).get_vendor())
I guess thats the reason when using fs they compare false as a result.
Same problem unsolved until now 2024, when use wfn format, the cpe is stored like
['"deltaww"']
, and when use fs it is stroed like['deltaww']
print(c1.get_vendor(), CPE2_3(c1.as_wfn()).get_vendor())
I guess thats the reason when using fs they compare false as a result.
While this may not be the cause of the above error, this is still a bug. This should be fixed as well, or a new issue created.
While this may not be the cause of the above error, this is still a bug. This should be fixed as well, or a new issue created.
Regarding my comment above; I just found this in the spec:
In WFNs, attribute-value strings will be enclosed in double quotes as in the examples below. The quotation marks are, of course, not considered part of the string values themselves.
So it's probably done on purpose. And I also noticed in the source that they do account for double quotes, and they are not used for comparison.
Compare cpe use fs format string,the two same cpe compare false.But when use wfn format,It return True