Skip to content

Commit

Permalink
Greedily match whitespace before copyright c
Browse files Browse the repository at this point in the history
  • Loading branch information
linozen committed May 14, 2022
1 parent e053e5c commit 42d7da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reuse/_util.py
Expand Up @@ -62,7 +62,7 @@
r"(?P<statement>.*)?)" + _END_PATTERN
),
re.compile(
r"(?P<copyright>(?P<prefix>Copyright(\s\([cC]\))?)\s+"
r"(?P<copyright>(?P<prefix>Copyright(\s?\([cC]\))?)\s+"
r"((?P<year>\d{4} - \d{4}|\d{4}),?\s+)?"
r"(?P<statement>.*)?)" + _END_PATTERN
),
Expand Down

0 comments on commit 42d7da1

Please sign in to comment.