This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = hex => {
|
|
if (hex[1] === hex[2] && hex[3] === hex[4] && hex[5] === hex[6]) {
|
|
return '#' + hex[2] + hex[4] + hex[6];
|
|
}
|
|
|
|
return hex;
|
|
}; |