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.
2 parents 48d260d + a1f0bb5 commit 6851c29Copy full SHA for 6851c29
CHANGELOG.md
@@ -79,6 +79,9 @@ The versions follow [semantic versioning](https://semver.org).
79
80
- Updated SPDX license list to 3.17. (#513)
81
82
+- The copyright detection mechanism now silently accepts the following strings:
83
+ `Copyright(c)` and `Copyright(C)`. (#440)
84
+
85
### Deprecated
86
87
- Deprecated `--explicit-license` in favour of `--force-dot-license`.
src/reuse/_util.py
@@ -62,7 +62,7 @@
62
r"(?P<statement>.*)?)" + _END_PATTERN
63
),
64
re.compile(
65
- r"(?P<copyright>(?P<prefix>Copyright(\s\([cC]\))?)\s+"
+ r"(?P<copyright>(?P<prefix>Copyright(\s?\([cC]\))?)\s+"
66
r"((?P<year>\d{4} - \d{4}|\d{4}),?\s+)?"
67
68
0 commit comments