From 6ed21cf53b2f3cfb9a36b7fabff48d96b4ef281c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 20 Jul 2009 02:17:06 +0200 Subject: macro.py: Allow characters ".,-" in copyright year specifications. Some macro use syntax like "2008,2009". I suspect sooner or later someone will use "2008-9" or something like that. --- macro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macro.py') diff --git a/macro.py b/macro.py index 709876d..c34beb6 100755 --- a/macro.py +++ b/macro.py @@ -90,7 +90,7 @@ class Macro: body = collapseText(body) elif key == "license": while True: - match = re.match(r"Copyright \(c\) ([0-9]+) (.*)", body[0]) + match = re.match(r"Copyright \(c\) ([0-9.,-]+) (.*)", body[0]) if not match: break (year,name) = (match.group(1), match.group(2)) match = re.match(r"(.*) <(.*)>", name) -- cgit v1.2.1