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:
authorMathias Rasmussen <mathiasvr@gmail.com>2016-07-27 01:27:39 +0300
committerMathias Rasmussen <mathiasvr@gmail.com>2016-07-27 01:27:39 +0300
commit27fbd74bf148e8b6e29136bca72233a1b1953a13 (patch)
tree6bc9c597e68b51cf8112603354044bed57445cde /index.js
parenta3f4756670279c61f82c1258e84f5ddff87c8665 (diff)
don't use arrow function
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 85c43da..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(v => zeroFill(2, v)).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