Skip to content

Commit a8ee21a

Browse files
committed
Narrow KISA holder pattern
1 parent 304b684 commit a8ee21a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cluecode/copyrights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,8 @@ 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'),
1237+
# KISA with an opening parenthesized expansion, as in "KISA(Korea"
1238+
(r"^KISA\(Korea$", 'NNP'),
12391239

12401240
# parens in the middle: for(var
12411241
(r"^[a-zA-Z]+[\)\(]+,?[\)\(]?[a-zA-Z]+[\.,]?$", 'JUNK'),

tests/licensedcode/test_detect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,8 @@ def test_match_has_correct_line_positions_in_automake_perl_file(self):
10751075
expected = [
10761076
# detected, match.lines(), match.qspan,
10771077
('gpl-2.0-plus', (12, 25), Span(51, 160)),
1078-
('fsf-unlimited-no-warranty', (231, 238), Span(986, 1049)),
1079-
('warranty-disclaimer', (306, 307), Span(1359, 1381)),
1078+
('fsf-unlimited-no-warranty', (231, 238), Span(998, 1061)),
1079+
('warranty-disclaimer', (306, 307), Span(1371, 1393)),
10801080
]
10811081
self.check_position('positions/automake.pl', expected)
10821082

0 commit comments

Comments
 (0)