Skip to content

Commit e21fdea

Browse files
committed
Detect year in the form of 2001-201x
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent d101937 commit e21fdea

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/cluecode/copyrights.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ def build_detection_from_node(
579579
'(20[0-3][0-9][\\.,\\-])+[0-9]' # 2001-4 not 2012
580580
'|'
581581
'(20[0-3][0-9][\\.,\\-])+20[0-3][0-9]' # 2001-2012
582+
'|'
583+
'(20[0-3][0-9][\\.,\\-])+20[0-3]x' # 2001-201x
582584
')')
583585

584586
_PUNCT = (
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (c) 2001-201x IBM
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
what:
2+
- copyrights
3+
- holders
4+
copyrights:
5+
- Copyright (c) 2001-201x IBM
6+
holders:
7+
- IBM

0 commit comments

Comments
 (0)