From ac71393fb053436f07abfb8252cbf8188225cae4 Mon Sep 17 00:00:00 2001 From: Helio Chissini de Castro Date: Mon, 6 Jul 2026 17:30:52 +0200 Subject: [PATCH] fix(copyrights): Retain trailing "Authors." when preceding name is tagged NN The copyright grammar only attached a trailing AUTHDOT token ("Authors.") to a copyright when an NN sat between the COPYRIGHT node and the AUTHDOT (rule #35011). Altered rule to match any entry that AUTHDOT recognition causing the trimming effect. Signed-off-by: Helio Chissini de Castro --- src/cluecode/copyrights.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cluecode/copyrights.py b/src/cluecode/copyrights.py index 6d17467acf..401bbe67dc 100644 --- a/src/cluecode/copyrights.py +++ b/src/cluecode/copyrights.py @@ -3288,7 +3288,10 @@ def build_detection_from_node( COPYRIGHT: { } #2841 # Copyright (c) 1995-2018 The PNG Reference Library Authors. (with and without trailing dot) - COPYRIGHT: { } #35011 + # Copyright 2021 The logr Authors. / Copyright 2022 The JSpecify Authors. + # attach a trailing "Authors." even when the preceding name was already + # absorbed into the COPYRIGHT node (e.g. names tagged NN like "logr", "JSpecify") + COPYRIGHT: { ? } #35011 ############ All right reserved in the middle ##############################