services/collections.js
Function alphaNumSort
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function alphaNumSort(a, b) {
var regex = /[^\d]+|\d+/g;
// Split each name into alphabetical and numeric parts
var ar = a.match(regex);
Function _newCollection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _newCollection(name, path, children) {
var collection = _newEmptyCollection(name, path);
console.debug('[collections._newCollection] collection:', collection);
for (var child of children) {
console.debug(