Released version 0.16.0

This commit is contained in:
josdejong 2013-11-29 09:01:35 +01:00
parent 1df8ebf2bc
commit 163b4be826
2 changed files with 8 additions and 8 deletions

View File

@ -96,22 +96,22 @@ Math.js can be downloaded or linked from [cdnjs](http://cdnjs.com/):
<table>
<tr>
<td>
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/0.15.0/math.js">
Development (version 0.15.0)
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/0.16.0/math.js">
Development (version 0.16.0)
</a>
</td>
<td>
<span id="development-size">377 kB</span>, uncompressed with comments
<span id="development-size">480 kB</span>, uncompressed with comments
</td>
</tr>
<tr>
<td>
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/0.15.0/math.min.js">
Production (version 0.15.0)
<a href="http://cdnjs.cloudflare.com/ajax/libs/mathjs/0.16.0/math.min.js">
Production (version 0.16.0)
</a>
</td>
<td>
<span id="production-size">33 kB</span>, minified and gzipped
<span id="production-size">41 kB</span>, minified and gzipped
</td>
</tr>
</table>

View File

@ -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(/<span id="development-size">([\w\s]*)<\/span>/g,