Skip to content

Commit c206f91

Browse files
committed
Detect odd name in copyright #3655
Reported-by: Anton Augsburg @vw-anton Reference: #3655 Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent cafcbcf commit c206f91

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/cluecode/copyrights.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,10 @@ def build_detection_from_node(
20672067

20682068
# dot in: fooo at bar dot com
20692069
(r'^dot$', 'DOT'),
2070+
2071+
# moment/moment is an odd name
2072+
(r'moment/moment$', 'NAME'),
2073+
20702074

20712075
############################################################################
20722076
# catch all other as Nouns
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright (c) moment/moment
2+
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) moment/moment
6+
holders:
7+
- moment/moment

0 commit comments

Comments
 (0)