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/):
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,