gitlab-cli
Advanced tools
Comparing version 0.0.13 to 0.0.14
function split(string, delimiter, limit) | ||
{ | ||
var _parts = string.split(delimiter, limit); | ||
var _parts = []; | ||
var parts = string.split(delimiter); | ||
if (parts.length > limit) { | ||
for(var i = limit - 1; i < parts.length; i++) { | ||
_parts[limit - 1] += parts[i]; | ||
if (i < parts.length - 1) { | ||
_parts[limit - 1] += delimiter; | ||
} | ||
for(var i = 0; i < parts.length; i++) { | ||
if (i < limit) { | ||
_parts.push(parts[i]); | ||
} | ||
else { | ||
_parts[_parts.length - 1] += parts[i]; | ||
} | ||
if (i >= limit - 1 && i < parts.length - 1) { | ||
_parts[_parts.length - 1] += delimiter; | ||
} | ||
} | ||
@@ -14,0 +18,0 @@ |
{ | ||
"name": "gitlab-cli", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Gitlab API on the command line", | ||
@@ -5,0 +5,0 @@ "main": "./bin/cli.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65251
758