Skip to content

Commit

Permalink
t/codingstd/copyright.t: allow year-year,year
Browse files Browse the repository at this point in the history
copyrights are only defendable on actual changes. overly broad ranges
are not accurate. allow adding single years, or multiple ranges.
See eg. select.pmc: 2011,2014, or file.pmc: 2001-2011,2014,

Fixes GH #1074
  • Loading branch information
Reini Urban committed Jun 13, 2014
1 parent 00cd232 commit 197be0d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dynpmc/dynlexpad.pmc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2005-2014, Parrot Foundation.
Copyright (C) 2005-2011,2014, Parrot Foundation.

=head1 NAME

Expand Down
2 changes: 1 addition & 1 deletion src/dynpmc/file.pmc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2001-2014, Parrot Foundation.
Copyright (C) 2001-2011,2014, Parrot Foundation.

=head1 NAME

Expand Down
2 changes: 1 addition & 1 deletion src/dynpmc/select.pmc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2011-2014 Parrot Foundation.
Copyright (C) 2011,2014, Parrot Foundation.

=head1 NAME

Expand Down
4 changes: 2 additions & 2 deletions t/codingstd/copyright.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! perl
# Copyright (C) 2007-2012, Parrot Foundation.
# Copyright (C) 2007-2014, Parrot Foundation.

use strict;
use warnings;
Expand Down Expand Up @@ -53,7 +53,7 @@ my (
my $copyright_simple =
qr/Copyright \(C\) \d{4}/i;
my $copyright_parrot =
qr/Copyright \(C\) (?:\d{4}\-)?\d{4}, Parrot Foundation\.\n/;
qr/Copyright \(C\) (?:(?:\d{4}\-)?\d{4},)+ Parrot Foundation\.\n/;

foreach my $file (@files) {

Expand Down

0 comments on commit 197be0d

Please sign in to comment.