Skip to content

Commit 9ccecc5

Browse files
authored
Merge pull request #2464 from akugarg/improve_copyright_detection
Update Regex to detect subsidiaries.
2 parents b371e75 + de8f810 commit 9ccecc5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/cluecode/copyrights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ def as_str(cls, node, ignores=frozenset(), include_allrights=False):
11731173
(r'^[Ll]\.?[Ll]\.?[CcPp]\.?,?$', 'COMP'),
11741174
(r'^L\.P\.?$', 'COMP'),
11751175
(r'^[Ss]ubsidiary$', 'COMP'),
1176-
(r'^[Ss]ubsidiaries$', 'COMP'),
1176+
(r'^[Ss]ubsidiaries\.?$', 'COMP'),
11771177
(r'^[Ss]ubsidiary\(\-ies\)\.?$', 'COMP'),
11781178

11791179
# company suffix : SA, SAS, AG, AB, AS, CO, labs followed by a dot
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Copyright (c) 2009, 2018 Robert Bosch GmbH and its subsidiaries.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
what:
2+
- copyrights
3+
- holders
4+
- holders_summary
5+
copyrights:
6+
- Copyright (c) 2009, 2018 Robert Bosch GmbH and its subsidiaries
7+
holders:
8+
- Robert Bosch GmbH and its subsidiaries
9+
holders_summary:
10+
- value: Robert Bosch GmbH and its subsidiaries
11+
count: 1

0 commit comments

Comments
 (0)