code: function( styleText ) {
  			return styleText.replace( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi, function( match, red, green, blue ) {
  				var color = [ red, green, blue ];
  				// Add padding zeros if the hex value is less than 0x10.
  				for ( var i = 0; i < 3; i++ )
  					color[ i ] = ( '0' + parseInt( color[ i ], 10 ).toString( 16 ) ).slice( -2 );
  				return '#' + color.join( '' );
  			} );
  		}
docs: Finds and converts `rgb(x,x,x)` color definition to hexadecimal notation.
  
  @param {String} styleText The style data (or just a string containing RGB colors) to be converted.
  @returns {String} The style data with RGB colors converted to hexadecimal equivalents.