Skip to content

Commit 6851c29

Browse files
authored
Merge pull request #517 from fsfe/fix-copyright-detection
Fix copyright detection
2 parents 48d260d + a1f0bb5 commit 6851c29

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ The versions follow [semantic versioning](https://semver.org).
7979

8080
- Updated SPDX license list to 3.17. (#513)
8181

82+
- The copyright detection mechanism now silently accepts the following strings:
83+
`Copyright(c)` and `Copyright(C)`. (#440)
84+
8285
### Deprecated
8386

8487
- Deprecated `--explicit-license` in favour of `--force-dot-license`.

src/reuse/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
r"(?P<statement>.*)?)" + _END_PATTERN
6363
),
6464
re.compile(
65-
r"(?P<copyright>(?P<prefix>Copyright(\s\([cC]\))?)\s+"
65+
r"(?P<copyright>(?P<prefix>Copyright(\s?\([cC]\))?)\s+"
6666
r"((?P<year>\d{4} - \d{4}|\d{4}),?\s+)?"
6767
r"(?P<statement>.*)?)" + _END_PATTERN
6868
),

0 commit comments

Comments
 (0)