summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-15 18:25:04 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-15 18:25:04 +0100
commit0b4585915a6c03fc15e8627b0308dbc7d194a2da (patch)
tree74b1a9d43f2118d23cc9325545ff069d44244a3c
parente5d750d59e255dee7e7c80cdeb10c533efdab397 (diff)
downloadcopyright-statement-lint-0b4585915a6c03fc15e8627b0308dbc7d194a2da.tar.gz
Tweak regex for copyright statement
Allow "(C)" after the word Copyright, and a dash in years.
-rwxr-xr-xcopyright-statement-lint4
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):