Skip to content

Commit 3d0a82c

Browse files
committed
devtools: Accomodate block-style copyright blocks
Without this, `copyright_header.py report . verbose` reports: ------------------------------------------------------------------------------- 1 with unexpected copyright holder names ./build_msvc/libsecp256k1_config.h -------------------------------------------------------------------------------
1 parent 0ef0e51 commit 3d0a82c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/copyright_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def get_filenames_to_examine(base_directory):
8585
ANY_COPYRIGHT_COMPILED = re.compile(ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE)
8686

8787
def compile_copyright_regex(copyright_style, year_style, name):
88-
return re.compile('%s %s,? %s\n' % (copyright_style, year_style, name))
88+
return re.compile(r'%s %s,? %s( +\*)?\n' % (copyright_style, year_style, name))
8989

9090
EXPECTED_HOLDER_NAMES = [
9191
r"Satoshi Nakamoto",

0 commit comments

Comments
 (0)