From 24b24be15152deb6b408afb334142dbacc4ff671 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 7 May 2014 22:33:38 +0300 Subject: [PATCH] devel: news2wiki to recognize yyyy-mm-dd or UNRELEASED as release date The yyyy-mm-dd (actually \d\d\d\d-\d\d-\d\d) for a bit more restrictive (and self-documentative) than the \w\w\w\w-... that used to be there and UNRELEASED so that developers can test the latest NEWS converted to mdwn format before submitting NEWS patches. --- devel/news2wiki.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devel/news2wiki.pl b/devel/news2wiki.pl index 8066ba7f..d966babf 100755 --- a/devel/news2wiki.pl +++ b/devel/news2wiki.pl @@ -32,8 +32,7 @@ while () { warn "$ARGV[0]:$.: tab(s) in line!\n" if /\t/; warn "$ARGV[0]:$.: trailing whitespace\n" if /\s\s$/; - # The date part in regex recognizes wip version dates like: (201x-xx-xx). - if (/^Notmuch\s+(\S+)\s+\((\w\w\w\w-\w\w-\w\w)\)\s*$/) { + if (/^Notmuch\s+(\S+)\s+\((\d\d\d\d-\d\d-\d\d|UNRELEASED)\)\s*$/) { # open O... autocloses previously opened file. open O, '>', "$ARGV[1]/release-$1.mdwn" or die $!; print "+ release-$1.mdwn...\n"; -- 2.26.2