Skip to content

Commit

Permalink
Mention case-insensitive operators in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Nov 21, 2023
1 parent e1dbc13 commit 86ebef5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,17 @@ The bulk of the SPDX standard describes syntax and semantics of XML metadata fil
)
```

This package differs slightly from the SPDX standard in allowing lower- and mixed-case `AND`, `OR`, and `WITH` operators:

```javascript
assert.deepEqual(
parse('MIT or BSD-2-Clause'),
{ left: { license: 'MIT' }, conjunction: 'or', right: { license: 'BSD-2-Clause' } }
)
assert.deepEqual(
parse('GPL-2.0 with GCC-exception-2.0'),
{ license: 'GPL-2.0', exception: 'GCC-exception-2.0' }
)
```

The Linux Foundation and its contributors license the SPDX standard under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: "CC-BY-3.0")](http://spdx.org/licenses/CC-BY-3.0). "SPDX" is a United States federally registered trademark of the Linux Foundation. The authors of this package license their work under the terms of the MIT License.

0 comments on commit 86ebef5

Please sign in to comment.