You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Got "CC-BY-NC-SA-3.0 AND CC-BY-SA-3.0" for file mentioning elements under CC-BY-SA-3.0 #3615
Not sure if this is a bug, but an issue, at least for me.
When scanning the attached custom-content.html file (attached) , I get "CC-BY-NC-SA-3.0 AND CC-BY-SA-3.0" for detected_license_expression_spdx, while the content only refers to elements under CC-BY-SA-3.0. (see attached json file)
@dotarjun here is a change that may fix things:
In src/licensedcode/data/rules/cc-by-nc-sa-3.0_22.RULE add double curly braces to make a part a "key phrase":
---
license_expression: cc-by-nc-sa-3.0is_license_notice: yesrelevance: 100ignorable_urls:
- http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US
---
This book is licensed under a Creative Commons http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US [{{Attribution-NonCommercial-ShareAlike 3.0}} Unported] license. For more information, please see the Creative Commons page.
Activity
pombredanne commentedon Dec 1, 2023
Thanks for the report. I will make a dedicated fix commit to show what the simple fix is FWIW.
dotarjun commentedon Dec 1, 2023
Hey do you mind if I give this a shot?
pombredanne commentedon Dec 2, 2023
@dotarjun sure thing! please do and thank you.
pombredanne commentedon Dec 4, 2023
@dotarjun here is a change that may fix things:
In
src/licensedcode/data/rules/cc-by-nc-sa-3.0_22.RULEadd double curly braces to make a part a "key phrase":AyanSinhaMahapatra commentedon Jan 17, 2024
@dotarjun ping!
dotarjun commentedon Jan 17, 2024
Hey, I totally missed this. I'll push the change asap
Add required phrases to rules
camillem commentedon Feb 6, 2024
Thanks for the quick fix :-)