Skip to content

Case-sensitive validation of license expressions? #121

Description

@choeppler

While the latest SPDX standard specifies that license identifiers should (mostly) be treated case-insensitive (https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#case-sensitivity), I have a use case where we'd like to validate that all identifiers in an expression match with the case of the canonical identifier on the SPDX License List. Is there a way to do this with license-expression, e.g, by somehow accessing the original token from the parsed LicenseSymbol?

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