details:   https://code.tryton.org/tools/maintenance/commit/ef3d9636e1ce
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sat Mar 14 13:26:58 2026 +0100
description:
        Do not match company with email when updating copyright
diffstat:

 update_copyright |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r eddf61678529 -r ef3d9636e1ce update_copyright
--- a/update_copyright  Sat Mar 14 12:29:06 2026 +0100
+++ b/update_copyright  Sat Mar 14 13:26:58 2026 +0100
@@ -62,10 +62,11 @@
         if name in lower_line:
             return increase_year(line)
     # Check if company match
+    lower_line_without_email = lower_line.rsplit('<', 1)[0]
     for company in companies:
-        if company in lower_line:
+        if company in lower_line_without_email:
             return increase_year(line)
-    if 'tryton' in lower_line:
+    if 'tryton' in lower_line_without_email:
         return increase_year(line)
     return line
 

Reply via email to