Skip to content

Commit 86ebef5

Browse files
committed
Mention case-insensitive operators in README
1 parent e1dbc13 commit 86ebef5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,17 @@ The bulk of the SPDX standard describes syntax and semantics of XML metadata fil
8989
)
9090
```
9191

92+
This package differs slightly from the SPDX standard in allowing lower- and mixed-case `AND`, `OR`, and `WITH` operators:
93+
94+
```javascript
95+
assert.deepEqual(
96+
parse('MIT or BSD-2-Clause'),
97+
{ left: { license: 'MIT' }, conjunction: 'or', right: { license: 'BSD-2-Clause' } }
98+
)
99+
assert.deepEqual(
100+
parse('GPL-2.0 with GCC-exception-2.0'),
101+
{ license: 'GPL-2.0', exception: 'GCC-exception-2.0' }
102+
)
103+
```
104+
92105
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 commit comments

Comments
 (0)