From 0b4585915a6c03fc15e8627b0308dbc7d194a2da Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 15 Apr 2014 18:25:04 +0100 Subject: Tweak regex for copyright statement Allow "(C)" after the word Copyright, and a dash in years. --- copyright-statement-lint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'copyright-statement-lint') 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\d+((,|\s)|\d+)*)\s(?P.*)') + r'Copyright\s+(\([cC]\)\s+)?(?P\d+((,|-|\s)|\d+)*)\s(?P.*)') class CopyrightStatementLint(cliapp.Application): -- cgit v1.2.1