Skip to content

license detection fails to detect MIT from "license": "(WTFPL OR MIT)" #4359

Open
@chinyeungli

Description

@chinyeungli
{
    "name": "opener",
    "description": "Opens stuff, like webpages and files and executables, cross-platform",
    "version": "1.5.2",
    "author": "Domenic Denicola <[email protected]> (https://domenic.me/)",
    "license": "(WTFPL OR MIT)",
    "repository": "domenic/opener",
    "main": "lib/opener.js",
    "bin": "bin/opener-bin.js",
    "files": [
        "lib/",
        "bin/"
    ],
    "scripts": {
        "lint": "eslint ."
    },
    "devDependencies": {
        "eslint": "^7.7.0"
    }
}

For the above package.json file, the package scan returns wtfpl-2.0 OR mit correctly. However, the license scan only returns wtfpl-2.0 which is incorrect as it's missing the mit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions