Skip to content

Commit 3533fbe

Browse files
author
Ari Madian
authored
Merge pull request #136 from acagastya/master
Add license-utilities tests + update attrToFull to act like attrToShort
2 parents 3d9cd4f + 0275ea7 commit 3533fbe

File tree

2 files changed

+956
-0
lines changed

2 files changed

+956
-0
lines changed

src/utils/license-utilities.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function attrToShort(attr) {
2828
}
2929

3030
function attrToFull(attr) {
31+
if (attr.BY === undefined) { return undefined }
3132
if (!attr.BY) { return 'CC0 1.0 Universal' }
3233
let base = 'Attribution'
3334
if (attr.NC) { base += '-NonCommercial' }

0 commit comments

Comments
 (0)