-
Committer:
Sean Whitton
-
Author(s):
Jonathan Dowland
-
Date:
2018-07-10 16:08:59 UTC
-
Revision ID:
git-v1:716224b219ac16ceac7b9b32aa4353f7066c881a
tweak regex for matching SPDX-shortcode CC license
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.