From f5b5b395e2c21c6c8a338a2b2641e3143534589c Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 13 Mar 2023 15:04:34 +1100 Subject: Support 4 digit version numbers so version 10.0.0 will work. --- scripts/LexGen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/LexGen.py') diff --git a/scripts/LexGen.py b/scripts/LexGen.py index fba9f6631..a999621d6 100644 --- a/scripts/LexGen.py +++ b/scripts/LexGen.py @@ -34,7 +34,7 @@ def UpdateVersionNumbers(sci, root): UpdateLineInFile(root / "doc/ScintillaDownload.html", " Release", " Release " + sci.versionDotted) ReplaceREInFile(root / "doc/ScintillaDownload.html", - r"/www.scintilla.org/([a-zA-Z]+)\d\d\d", + r"/www.scintilla.org/([a-zA-Z]+)\d{3,5}", r"/www.scintilla.org/\g<1>" + sci.version, 0) UpdateLineInFile(root / "doc/index.html", -- cgit v1.2.3