git ssb

0+

cel / pull-git-remote-helper



Tree: 9f6b7a97b920fe19a6c5b5cde35a13230b4e1b9a

Files: 9f6b7a97b920fe19a6c5b5cde35a13230b4e1b9a / lib / util.js

284 bytesRaw
1exports.split2 = function (str, delim) {
2 var i = str.indexOf(delim || ' ')
3 return (i === -1) ? [str, ''] : [
4 str.substr(0, i),
5 str.substr(i + 1)
6 ]
7}
8
9exports.split3 = function (str) {
10 var args = exports.split2(str)
11 return [args[0]].concat(exports.split2(args[1]))
12}
13

Built with git-ssb-web