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>2016-07-27 02:09:00 +0300
committerGitHub <noreply@github.com>2016-07-27 02:09:00 +0300
commite55854a90d57ae7d97f727aca2867f6c7f5b2429 (patch)
tree2e734dad155f185fb7224e250bd04d9c09620d04 /index.js
parentbfa776ba2260ecffae3cac45bec2299a55b36490 (diff)
parent27fbd74bf148e8b6e29136bca72233a1b1953a13 (diff)
Merge pull request #851 from mathiasvr/patch-1
Fix version string
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.js b/index.js
index 3402551..221a19b 100644
--- a/index.js
+++ b/index.js
@@ -31,7 +31,8 @@ var VERSION = require('./package.json').version
* '0.16.1' -> '0016'
* '1.2.5' -> '0102'
*/
-var VERSION_STR = VERSION.match(/([0-9]+)/g).slice(0, 2).map(zeroFill(2)).join('')
+var m = VERSION.match(/([0-9]+)/g).slice(0, 2)
+var VERSION_STR = zeroFill(2, m[0]) + zeroFill(2, m[1])
/**
* Version prefix string (used in peer ID). WebTorrent uses the Azureus-style