lib/packer.js
function(input, options) {
		this.preprocess(input, options);
		for (var inputIndex=0; inputIndex < this.inputList.length; ++inputIndex)
		{
			this.input = this.inputList[inputIndex][1][1].replace(/\\/g,'\\\\');
			
			// first stage : configurable crusher
			var output = this.findRedundancies(options);
			this.inputList[inputIndex].push(output);
			
			// second stage : convert token string to regexp
			output = packer.packToRegexpCharClass(options);
			this.inputList[inputIndex].push(output);
			
			// third stage : try a negated regexp instead
			output = packer.packToNegatedRegexpCharClass();
			this.inputList[inputIndex].push(output);
			
		}
	}
function(input, options) {
		this.preprocess(input, options);
		for (var inputIndex=0; inputIndex < this.inputList.length; ++inputIndex)
		{
			this.input = this.inputList[inputIndex][1][1].replace(/\\/g,'\\\\');
			
			// first stage : configurable crusher
			var output = this.findRedundancies(options);
			this.inputList[inputIndex].push(output);
			
			// second stage : convert token string to regexp
			output = packer.packToRegexpCharClass(options);
			this.inputList[inputIndex].push(output);
			
			// third stage : try a negated regexp instead
			output = packer.packToNegatedRegexpCharClass();
			this.inputList[inputIndex].push(output);
			
		}
	}
function ( input , options ) { this . preprocess ( input , options ) ; for ( var inputIndex = 0 ; inputIndex < this . inputList . length ; ++ inputIndex ) { this . input = this . inputList [ inputIndex ] [ 1 ] [ 1 ] . replace ( / \\ / g , '\\\\' ) ; // first stage : configurable crusher var output = this . findRedundancies ( options ) ; this . inputList [ inputIndex ] . push ( output ) ; // second stage : convert token string to regexp output = packer . packToRegexpCharClass ( options ) ; this . inputList [ inputIndex ] . push ( output ) ; // third stage : try a negated regexp instead output = packer . packToNegatedRegexpCharClass ( ) ; this . inputList [ inputIndex ] . push ( output ) ; } }
Main entry point for RegPack
Main entry point for RegPack