From 3d0a82cff8cbb809876e82dbe62d14d2adc07d94 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Tue, 26 Feb 2019 02:24:49 -0800 Subject: [PATCH] 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 ------------------------------------------------------------------------------- --- contrib/devtools/copyright_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/devtools/copyright_header.py b/contrib/devtools/copyright_header.py index f1bd9108927..67e77bc63de 100755 --- a/contrib/devtools/copyright_header.py +++ b/contrib/devtools/copyright_header.py @@ -85,7 +85,7 @@ ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE = ("%s %s" % (ANY_COPYRIGHT_STYLE, ANY_COPYRIGHT_COMPILED = re.compile(ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE) def compile_copyright_regex(copyright_style, year_style, name): - return re.compile('%s %s,? %s\n' % (copyright_style, year_style, name)) + return re.compile(r'%s %s,? %s( +\*)?\n' % (copyright_style, year_style, name)) EXPECTED_HOLDER_NAMES = [ r"Satoshi Nakamoto",