mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Fixed regular expression to only match the first license notice at the top of the file
This commit is contained in:
parent
62dfc736d4
commit
edd9c2a45d
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def apply_python_license(filename):
|
|||
"""
|
||||
|
||||
print("Shell/Python file: %s" % filename)
|
||||
relimit = r'^(?s)#\+.*#\+'
|
||||
relimit=r'^#\+\n(#.*\n)*#\+\n'
|
||||
apply_license(license, relimit, filename)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue