Description
Split an identifier's legacy plus-or-later suffix.
License-related tokens can point to a file or express a legacy suffix convention. Lexical recognition does not establish that a license exists, applies to the content or permits a proposed reuse.
Split an identifier's legacy plus-or-later suffix.
When to use this tool
Use License Expression Plus OR Later Token when checking a restricted license-metadata spelling.
How to use the tool and how it works
- Enter identifier. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read base, orLater. Inspect orLater before interpreting the associated values.
Split an identifier's legacy plus-or-later suffix. Require an ASCII alphanumeric start and subsequent alphanumeric/dot/hyphen with optional final plus; return base and orLater.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| identifier | Identifier | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| base | Base | Required. Text; maximum UTF-16 length 8192. |
| orLater | Or Later | Required. Boolean. |
{
"input": {
"identifier": "GPL-2.0+"
},
"output": {
"base": "GPL-2.0",
"orLater": true
}
} Limitations and assumptions
- This is syntax only, not an SPDX registry lookup, expression parser or licensing determination.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Read the actual license and relevant provenance; use a proper SPDX parser for expressions and appropriate advice for legal interpretation.
References
Similar or alternative tools
- Package JSON License SPDX Prefix
Inspect a package license value for an external license-file phrase.
- Makefile Recipe Tab Prefix
Inspect a default-tab Makefile recipe prefix.