You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							473 B
						
					
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							473 B
						
					
					
				"use strict";
 | 
						|
 | 
						|
exports.__esModule = true;
 | 
						|
exports["default"] = void 0;
 | 
						|
 | 
						|
/**
 | 
						|
 * Reduces hex values if possible e.g. #ff8866 to #f86
 | 
						|
 * @private
 | 
						|
 */
 | 
						|
var reduceHexValue = function reduceHexValue(value) {
 | 
						|
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
 | 
						|
    return "#" + value[1] + value[3] + value[5];
 | 
						|
  }
 | 
						|
 | 
						|
  return value;
 | 
						|
};
 | 
						|
 | 
						|
var _default = reduceHexValue;
 | 
						|
exports["default"] = _default;
 | 
						|
module.exports = exports.default; |