[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Allow for case where there is no revision/PR (cf2d551a)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Jul 30 14:47:36 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/cf2d551ab51824f9200cbfb95ac7b4bd0bb9f45e
>---------------------------------------------------------------
commit cf2d551ab51824f9200cbfb95ac7b4bd0bb9f45e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jul 30 13:47:36 2019 +0100
Allow for case where there is no revision/PR
>---------------------------------------------------------------
cf2d551ab51824f9200cbfb95ac7b4bd0bb9f45e
base/build.lua | 2 +-
build-config.lua | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/build.lua b/base/build.lua
index 2eaeb5ce..0a5acbfc 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -161,7 +161,7 @@ function update_tag(file,content,tagname,tagdate)
return content
end
local iso = "%d%d%d%d%-%d%d%-%d%d"
- local tag, rev = string.match(tagname,"^(.*):([^:]*)$")
+ local tag, rev = string.match(tagname,"^(.*):([^:]*)$") or tagname,""
local patch_level = ""
if master_branch then
if rev then
diff --git a/build-config.lua b/build-config.lua
index d4528288..75ba781f 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -81,7 +81,7 @@ update_tag = update_tag or function (file,content,tagname,tagdate)
return content
end
local iso = "%d%d%d%d%-%d%d%-%d%d"
- local tag, rev = string.match(tagname,"^(.*):?([^:]*)$")
+ local tag, rev = string.match(tagname,"^(.*):([^:]*)$") or tagname,""
if master_branch then
if rev then
tag = tag .. " patch level " .. rev
More information about the latex3-commits
mailing list