Files
feedstr.live/node_modules/postcss-merge-longhand/src/lib/minifyTrbl.js
T
2023-11-25 18:12:47 -05:00

22 lines
395 B
JavaScript

'use strict';
const parseTrbl = require('./parseTrbl.js');
/** @type {(v: string | [string, string, string, string]) => string} */
module.exports = (v) => {
const value = parseTrbl(v);
if (value[3] === value[1]) {
value.pop();
if (value[2] === value[0]) {
value.pop();
if (value[0] === value[1]) {
value.pop();
}
}
}
return value.join(' ');
};