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 -------------------------------------------------------------------------------
This commit is contained in:
parent
0ef0e51fe4
commit
3d0a82cff8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
ANY_COPYRIGHT_COMPILED = re.compile(ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE)
|
||||||
|
|
||||||
def compile_copyright_regex(copyright_style, year_style, name):
|
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 = [
|
EXPECTED_HOLDER_NAMES = [
|
||||||
r"Satoshi Nakamoto",
|
r"Satoshi Nakamoto",
|
||||||
|
|
Loading…
Add table
Reference in a new issue