source: frontend/node_modules/postcss-merge-longhand/src/lib/minifyTrbl.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 395 bytes
RevLine 
[9af201e]1'use strict';
2const parseTrbl = require('./parseTrbl.js');
3
4/** @type {(v: string | [string, string, string, string]) => string} */
5module.exports = (v) => {
6 const value = parseTrbl(v);
7
8 if (value[3] === value[1]) {
9 value.pop();
10
11 if (value[2] === value[0]) {
12 value.pop();
13
14 if (value[0] === value[1]) {
15 value.pop();
16 }
17 }
18 }
19
20 return value.join(' ');
21};
Note: See TracBrowser for help on using the repository browser.