aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/LexGen.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-09 13:38:45 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-09 13:38:45 +1000
commit04cea3a50855b43eb3febcbc39eaf9b24ea73abc (patch)
tree5a61d3b880501518bee67dba08271be92f9bb71e /scripts/LexGen.py
parent422064843aa559237587a9a0b633b561d1dcd613 (diff)
downloadscintilla-mirror-04cea3a50855b43eb3febcbc39eaf9b24ea73abc.tar.gz
Add count argument to ReplaceREInFile so can modify mutiple occurrences.
Fixed downloads page.
Diffstat (limited to 'scripts/LexGen.py')
-rw-r--r--scripts/LexGen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/LexGen.py b/scripts/LexGen.py
index c638e9878..f40efce04 100644
--- a/scripts/LexGen.py
+++ b/scripts/LexGen.py
@@ -40,7 +40,8 @@ def UpdateVersionNumbers(sci, root):
" Release " + sci.versionDotted)
ReplaceREInFile(root / "doc/ScintillaDownload.html",
r"/www.scintilla.org/([a-zA-Z]+)\d\d\d",
- r"/www.scintilla.org/\g<1>" + sci.version)
+ r"/www.scintilla.org/\g<1>" + sci.version,
+ 0)
UpdateLineInFile(root / "doc/index.html",
' <font color="#FFCC99" size="3"> Release version',
' <font color="#FFCC99" size="3"> Release version ' +\