lib/factories/service.factory.js
function isCandidate(modulePath) {
        modulePath = modulePath || '';
        var len = modulePath.length;
        return modulePath.indexOf('/') < 0 && len > 7 &&
            modulePath.substring(modulePath.length - 7) === 'Service';
    }
function isCandidate(modulePath) {
        modulePath = modulePath || '';
        var len = modulePath.length;
        return modulePath.indexOf('/') < 0 && len > 7 &&
            modulePath.substring(modulePath.length - 7) === 'Service';
    }
function isCandidate ( modulePath ) { modulePath = modulePath || '' ; var len = modulePath . length ; return modulePath . indexOf ( '/' ) < 0 && len > 7 && modulePath . substring ( modulePath . length - 7 ) === 'Service' ; }
Candidate if no slash and the modulePath ends in 'Service'
@param modulePath
@returns {boolean}
Candidate if no slash and the modulePath ends in Service