From 697bbfa282bfb886ce573bf7cf2096acf7917793 Mon Sep 17 00:00:00 2001 From: "Fr. Samuel Springuel" Date: Sun, 19 Apr 2026 17:00:54 -0400 Subject: [PATCH 1/2] Reorder wildcards They hyphen must be placed last within the wildcard place holder to represent an actual hyphen. Otherwise it's interpreted as a range between the two characters on either side of it. --- tests/scripted/cli/test-gtex.rc | 2 +- tests/scripted/cli/version.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripted/cli/test-gtex.rc b/tests/scripted/cli/test-gtex.rc index c2c44629..0008c3ce 100644 --- a/tests/scripted/cli/test-gtex.rc +++ b/tests/scripted/cli/test-gtex.rc @@ -1,4 +1,4 @@ -EXPECTED='% File generated by gregorio [0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?(-[a-zA-Z0-9./-_]{1,}-[0-9a-f]{8}-[0-9]{1,})? +EXPECTED='% File generated by gregorio [0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?(-[a-zA-Z0-9./_-]{1,}-[0-9a-f]{8}-[0-9]{1,})? \\GregorioTeXAPIVersion\{[0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?\}% % Name: test \\GreBeginHeaders % diff --git a/tests/scripted/cli/version.sh b/tests/scripted/cli/version.sh index 9d1eabd1..7c250f00 100644 --- a/tests/scripted/cli/version.sh +++ b/tests/scripted/cli/version.sh @@ -1,4 +1,4 @@ -EXPECTED="Gregorio [0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?(-[a-zA-Z0-9./-_]{1,}-[0-9a-f]{8}-[0-9]{1,})?( \(kpathsea version [0-9]\.[0-9]\.[0-9]\))?\. +EXPECTED="Gregorio [0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?(-[a-zA-Z0-9./_-]{1,}-[0-9a-f]{8}-[0-9]{1,})?( \(kpathsea version [0-9]\.[0-9]\.[0-9]\))?\. Copyright \(C\) 2006-202[0-9] Gregorio Project authors \(see CONTRIBUTORS\.md\) License GPLv3\+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. From f98ee31565fff5255bdf261efc4da0ffc1684ec2 Mon Sep 17 00:00:00 2001 From: "Fr. Samuel Springuel" Date: Sun, 19 Apr 2026 17:01:28 -0400 Subject: [PATCH 2/2] Escape periods This output had a couple of unescaped periods in it. --- tests/scripted/cli/version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripted/cli/version.sh b/tests/scripted/cli/version.sh index 7c250f00..4ca57465 100644 --- a/tests/scripted/cli/version.sh +++ b/tests/scripted/cli/version.sh @@ -1,7 +1,7 @@ EXPECTED="Gregorio [0-9]\.[0-9]\.[0-9](-(beta|rc)[0-9]{1,})?(-[a-zA-Z0-9./_-]{1,}-[0-9a-f]{8}-[0-9]{1,})?( \(kpathsea version [0-9]\.[0-9]\.[0-9]\))?\. Copyright \(C\) 2006-202[0-9] Gregorio Project authors \(see CONTRIBUTORS\.md\) -License GPLv3\+: GNU GPL version 3 or later -This is free software: you are free to change and redistribute it. +License GPLv3\+: GNU GPL version 3 or later +This is free software: you are free to change and redistribute it\. There is NO WARRANTY, to the extent permitted by law\." echo "$EXPECTED"