Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2018-05-23 08:35:46 +0300
committerFeross Aboukhadijeh <feross@feross.org>2018-05-23 08:37:11 +0300
commit552d6d6d57dd386687f2611739af3c85e7bacae7 (patch)
treeddb8f89d30a7c3b315ad3bc7f12f7dd7e7edba33 /index.js
parent925bb881cfe90cc055f67e747df693f32d265733 (diff)
Support versions being >= 100
0.99.0 -> '0099' 0.100.0 -> '0000' 0.101.0 -> '0001'
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 9276897..b90fc87 100644
--- a/index.js
+++ b/index.js
@@ -35,7 +35,7 @@ var VERSION = require('./package.json').version
*/
var VERSION_STR = VERSION.match(/([0-9]+)/g)
.slice(0, 2)
- .map(function (v) { return zeroFill(2, v) })
+ .map(function (v) { return zeroFill(2, v % 100) })
.join('')
/**