bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
function parseListConfig(string) {
		var items = {};

		// Collapse whitespace around ,
		string = string.replace(/\s*,\s*/g, ",");

		string.split(/,+/).forEach(function(name) {
			name = name.trim();
			if (!name) {
				return;
			}
			items[name] = true;
		});
		return items;
	}
function parseListConfig(string) {
		var items = {};

		// Collapse whitespace around ,
		string = string.replace(/\s*,\s*/g, ",");

		string.split(/,+/).forEach(function(name) {
			name = name.trim();
			if (!name) {
				return;
			}
			items[name] = true;
		});
		return items;
	}
function parseListConfig ( string ) { var items = { } ; // Collapse whitespace around , string = string . replace ( / \s*,\s* / g , "," ) ; string . split ( / ,+ / ) . forEach ( function ( name ) { name = name . trim ( ) ; if ( ! name ) { return ; } items [ name ] = true ; } ) ; return items ; }
Parses a config of values separated by comma.
@param {string} string The string to parse.
@returns {Object} Result map of values and true values
Parses a config of values separated by comma .