Skip to content

tweak regex for matching SPDX-shortcode CC license

Jonathan Dowland requested to merge check-license-cc-globs into master

According to DEP-5, A ".0" version suffix is implied if omitted. Therefore folks may legitimately be using e.g. CC-BY-SA-4 instead of CC-BY-SA-4.0, and it shall be equivalent. Adjust the relevant regexes to catch both forms.

Strictly, a suffixless CC-BY would be equivalent to CC-BY-1.0, but that's a bit thornier and I suspect less common in practise so this patch does not address it.

Merge request reports

Loading