- # Compress to intervals.
- $year_lines =~
- s/
- (\d{4})
- (?:
- (,\ |-)
- ((??{
- if ($2 eq '-') { '\d{4}'; }
- elsif (!$3) { $1 + 1; }
- else { $3 + 1; }
- }))
- )+
- /$1-$3/gx;
+ # Do not compress to intervals; for example, do not replace
+ # "2008, 2009, 2010" with "2008-2010". See the Copyright
+ # Notices section in Information for Maintainers of GNU Software, at:
+ # http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices