Skip to content

cpe name_match false when argument is fs format string #52

@beruhan

Description

@beruhan

Compare cpe use fs format string,the two same cpe compare false.But when use wfn format,It return True

# -*- coding: utf-8 -*-
from cpe.cpeset2_3 import CPESet2_3
from cpe.cpe2_3 import CPE2_3
# compare fs
K = CPESet2_3()
c1 = CPE2_3('cpe:2.3:a:deltaww:cncsoft_screeneditor:1:*:*:*:*:*:*:*')
c2 = CPE2_3("cpe:2.3:a:deltaww:cncsoft_screeneditor:1:*:*:*:*:*:*:*")
K.append(c1)
print(K.name_match(c2))

# compare wfn
K = CPESet2_3()
K.append(CPE2_3(c1.as_wfn()))
print(K.name_match(CPE2_3(c1.as_wfn())))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions