diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-11 15:25:04 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-11 15:25:04 +1100 |
commit | 2d83b1c0595668fd18f665a6406e948fda04118a (patch) | |
tree | 26d5fc90d3fc6d4d1b40d736319f03f1be0b3972 | |
parent | 0ccb4e59e0551fd90dbda4ec3f8ad3e7c5d904ee (diff) | |
download | scintilla-mirror-2d83b1c0595668fd18f665a6406e948fda04118a.tar.gz |
Only substitute one instance of RE for ReplaceREInFile.
-rw-r--r-- | scripts/FileGenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py index cf949901c..9fb32f46a 100644 --- a/scripts/FileGenerator.py +++ b/scripts/FileGenerator.py @@ -217,5 +217,5 @@ def FindSectionInList(lines, markers): def ReplaceREInFile(path, match, replace): with codecs.open(path, "r", "utf-8") as f: contents = f.read() - contents = re.sub(match, replace, contents) + contents = re.sub(match, replace, contents, 1) UpdateFile(path, contents) |