[latex3-commits] [latex3/l3build] main: Extend version string normalisation (see #96) (8e76224)
github at latex-project.org
github at latex-project.org
Mon Sep 11 07:37:02 CEST 2023
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/8e76224031d7bc64d9f21e603134bd98fd3a77a4
>---------------------------------------------------------------
commit 8e76224031d7bc64d9f21e603134bd98fd3a77a4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Sep 11 06:36:42 2023 +0100
Extend version string normalisation (see #96)
>---------------------------------------------------------------
8e76224031d7bc64d9f21e603134bd98fd3a77a4
CHANGELOG.md | 4 ++++
l3build-check.lua | 3 +++
2 files changed, 7 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 87db77c..45a1038 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,10 @@ this project uses date-based 'snapshot' version identifiers.
### Added
- Document ConTeXt as supported `checkformat`
+### Changed
+- Extend version string normalisation during checks
+ (see issue \#96)
+
## [2023-09-07]
### Changed
diff --git a/l3build-check.lua b/l3build-check.lua
index 3e26de4..a81d84a 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -171,7 +171,10 @@ local function normalize_log(content,engine,errlevels)
-- Deal with dates
if match(line, "[^<]%d%d%d%d[/%-]%d%d[/%-]%d%d") then
line = gsub(line,"%d%d%d%d[/%-]%d%d[/%-]%d%d","....-..-..")
+ -- Classical LaTeX version strings
line = gsub(line,"v%d+%.?%d?%d?%w?","v...")
+ -- Semantic version-like ones
+ line = gsub(line,"v%d+%.%d+%.%d+[%d%a.+%-]*","v...")
end
-- Deal with leading spaces for file and page number lines
line = gsub(line,"^ *%[(%d)","[%1")
More information about the latex3-commits
mailing list.