flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
16
VISUALIZACION/node_modules/polished/lib/internalHelpers/_reduceHexValue.js
generated
vendored
Executable file
16
VISUALIZACION/node_modules/polished/lib/internalHelpers/_reduceHexValue.js
generated
vendored
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
"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 = exports["default"] = reduceHexValue;
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue