[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Better coverage of "(C)" (5f6c0da1)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Aug 1 14:44:46 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/5f6c0da17eb6fdd3dc91ea69663ef456a02ab59f

>---------------------------------------------------------------

commit 5f6c0da17eb6fdd3dc91ea69663ef456a02ab59f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Aug 1 13:44:46 2019 +0100

    Better coverage of "(C)"


>---------------------------------------------------------------

5f6c0da17eb6fdd3dc91ea69663ef456a02ab59f
 base/build.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/build.lua b/base/build.lua
index 0db977a9..4807dacc 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -148,8 +148,8 @@ function update_tag(file,content,tagname,tagdate)
     content = string.gsub(content,
       "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d",
       "Copyright (C) %1-" .. year)
-  elseif string.match(content,"%% Copyright %d%d%d%d\n") then
-    local oldyear = string.match(content,"%% Copyright (%d%d%d%d)\n")
+  elseif string.match(content,"%% Copyright %(C%) %d%d%d%d\n") then
+    local oldyear = string.match(content,"%% Copyright %(C%) (%d%d%d%d)\n")
     if not year == oldyear then
       content = string.gsub(content,
         "Copyright %(C%) %d%d%d%d",





More information about the latex3-commits mailing list