From 0692838c77f2a995eefda70d51e1df8a2f6fef08 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Fri, 29 Oct 2021 15:36:11 +0200 Subject: [PATCH] Fix library updater script. --- tools/updatelibs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/updatelibs.py b/tools/updatelibs.py index 73436b4..c606654 100644 --- a/tools/updatelibs.py +++ b/tools/updatelibs.py @@ -58,9 +58,9 @@ def UpdateThreeJs (rootDir, tempDir): PrintInfo ('Replacing file name') configFilePath = os.path.join (rootDir, 'tools', 'config.json') - Tools.ReplaceRegexInFile (configFilePath, 'three.min-r[0-9]+.js', 'three.min-' + threeJsTagName + '.js') + Tools.ReplaceRegexInFile (configFilePath, 'three.min-r?[0-9]+.js', 'three.min-' + threeJsTagName + '.js') buildScriptPath = os.path.join (rootDir, 'tools', 'build.py') - Tools.ReplaceRegexInFile (buildScriptPath, 'three.min-r[0-9]+.js', 'three.min-' + threeJsTagName + '.js') + Tools.ReplaceRegexInFile (buildScriptPath, 'three.min-r?[0-9]+.js', 'three.min-' + threeJsTagName + '.js') def Main (argv): toolsDir = os.path.dirname (os.path.abspath (__file__))