diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-15 18:25:04 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-15 18:25:04 +0100 |
commit | 0b4585915a6c03fc15e8627b0308dbc7d194a2da (patch) | |
tree | 74b1a9d43f2118d23cc9325545ff069d44244a3c /copyright-statement-lint | |
parent | e5d750d59e255dee7e7c80cdeb10c533efdab397 (diff) | |
download | copyright-statement-lint-0b4585915a6c03fc15e8627b0308dbc7d194a2da.tar.gz |
Tweak regex for copyright statement
Allow "(C)" after the word Copyright, and a dash in years.
Diffstat (limited to 'copyright-statement-lint')
-rwxr-xr-x | copyright-statement-lint | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/copyright-statement-lint b/copyright-statement-lint index f775ead..db61ded 100755 --- a/copyright-statement-lint +++ b/copyright-statement-lint @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2013 Lars Wirzenius +# Copyright 2013-2014 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ import sys copyright_pattern = re.compile( - r'Copyright\s+(?P<years>\d+((,|\s)|\d+)*)\s(?P<names>.*)') + r'Copyright\s+(\([cC]\)\s+)?(?P<years>\d+((,|-|\s)|\d+)*)\s(?P<names>.*)') class CopyrightStatementLint(cliapp.Application): |