diff --git a/index.md b/index.md index cd0170755..b6e869359 100644 --- a/index.md +++ b/index.md @@ -96,22 +96,22 @@ Math.js can be downloaded or linked from [cdnjs](http://cdnjs.com/):
- - Development (version 0.15.0) + + Development (version 0.16.0) - 377 kB, uncompressed with comments + 480 kB, uncompressed with comments
- - Production (version 0.15.0) + + Production (version 0.16.0) - 33 kB, minified and gzipped + 41 kB, minified and gzipped
diff --git a/updateversion.js b/updateversion.js index ede083e3e..ede56e3d4 100644 --- a/updateversion.js +++ b/updateversion.js @@ -64,8 +64,8 @@ function updateVersion(developmentSize, productionSize, version, callback) { data = String(data); // replace version - data = data.replace(/\(version [0-9]+\.[0-9]+\.[0-9]+?(-SNAPSHOT)\)/g, '(version ' + version + ')'); - data = data.replace(/\/[0-9]+\.[0-9]+\.[0-9]+?(-SNAPSHOT)\//g, '/' + version + '/'); + data = data.replace(/\(version [0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?\)/g, '(version ' + version + ')'); + data = data.replace(/\/[0-9]+\.[0-9]+\.[0-9]+?(-SNAPSHOT)?\//g, '/' + version + '/'); // replace development size data = data.replace(/([\w\s]*)<\/span>/g,