8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
is this repo still alive? #6
Open
@dogasantos

Description

@dogasantos

I noticed that the last issue was not responded.
But still, I found that the matching doesnt seem to work as expected:

` cpe1_param := strings.ReplaceAll( c.QueryParam("cpe1"), ".", "\.")
cpe2_param := strings.ReplaceAll(c.QueryParam("cpe2"), ".", "\.")

           if matching.IsDisjoint(cpe1, cpe2) {
		match = "IsDisjoint"
	}
	if matching.IsEqual(cpe1, cpe2) {
		match = "IsEqual"
	}
	if matching.IsSuperset(cpe1, cpe2) {
		match = "IsSuperset"
	}
	if matching.IsSubset(cpe1, cpe2) {
		match = "IsSubset"
	}

`
match will always be the last one, it doesn't matter the condition. In other words, if I invert the order of matching.IsSubset by matching.IsSuperset, then match = "IsSuperset"

Which means that the matching doesn't seems to be working as expected..

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

      0