Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version string #851

Merged
merged 2 commits into from Jul 26, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

don't use arrow function

  • Loading branch information
mathiasvr committed Jul 26, 2016
commit 27fbd74bf148e8b6e29136bca72233a1b1953a13
@@ -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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.