lib/config-parser.js
function checkWhitelist(str, whitelist, context) {
    if (whitelist.indexOf(str) === -1) {
        throw new ImplementationError(
            'Invalid "' + str + '" (allowed: ' + whitelist.join(', ') + ')' + context.errorContext
        );
    }
    return str;
}
function checkWhitelist(str, whitelist, context) {
    if (whitelist.indexOf(str) === -1) {
        throw new ImplementationError(
            'Invalid "' + str + '" (allowed: ' + whitelist.join(', ') + ')' + context.errorContext
        );
    }
    return str;
}
function checkWhitelist ( str , whitelist , context ) { if ( whitelist . indexOf ( str ) === - 1 ) { throw new ImplementationError ( 'Invalid "' + str + '" (allowed: ' + whitelist . join ( ', ' ) + ')' + context . errorContext ) ; } return str ; }
Validates string against whitelist.

@private
Validates string against whitelist .