We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02d5ed commit 209847fCopy full SHA for 209847f
1 file changed
src/checker.ts
@@ -190,8 +190,9 @@ export class LicenseChecker extends EventEmitter {
190
}
191
if (typeof license === 'string') return license;
192
if (Array.isArray(license)) {
193
+ if (license.length === 0) return null;
194
const types = license.map(x => x.type).filter(x => !!x);
- return types.length === 1 ? types[0] : `(${types.join(' OR ')})`;
195
+ return types.length === 1 ? types[0] : `${types.join(' / ')}`;
196
197
return license.type || null;
198
0 commit comments