Skip to content

dedup does not work with logically equivalent expressions #130

Description

@chinyeungli
>>> from license_expression import Licensing
>>> lic_exp = "(apache-2.0 OR mit) AND (mit OR apache-2.0)"
>>> str(Licensing().dedup(lic_exp))
'(apache-2.0 OR mit) AND (mit OR apache-2.0)'

The apache-2.0 OR mit and mit OR apache-2.0 is technically equivalent and should be deduplicated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions