Skip to content

Commit 304b684

Browse files
committed
Detect acronym holder with parenthesized expansion
Signed-off-by: Vincent Gao <gaobing1230@gmail.com>
1 parent 4e8d711 commit 304b684

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The following organizations or individuals have contributed to ScanCode:
102102
- Vibhu Agarwal @Vibhu-Agarwal
103103
- Viktor Tiulpin @tiulpin
104104
- Vinay Kumar Singh @Vinay0001
105+
- Vincent Gao @gaoflow
105106
- Virag Umathe @viragumathe5
106107
- Yash D. Saraf @yashdsaraf
107108
- Yash Nisar @yash-nisar

src/cluecode/copyrights.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,9 @@ def build_detection_from_node(
12341234

12351235
(r"^[a-z].+\(s\)[\.,]?$", 'JUNK'),
12361236

1237+
# acronym with an opening parenthesized expansion, as in "KISA(Korea"
1238+
(r"^[A-Z]{2,}\([A-Z][A-Za-z]+$", 'NNP'),
1239+
12371240
# parens in the middle: for(var
12381241
(r"^[a-zA-Z]+[\)\(]+,?[\)\(]?[a-zA-Z]+[\.,]?$", 'JUNK'),
12391242

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (c) 2007 KISA(Korea Information Security Agency).
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) 2007 KISA(Korea Information Security Agency)
6+
holders:
7+
- KISA(Korea Information Security Agency)

0 commit comments

Comments
 (0)