Urara-Blog/node_modules/.pnpm-store/v3/files/54/3462342c692f1e98ea32e1eeee03a77707c08b6d0741cbd371ebfdb76b6bd7295cec591e670063cfd525fb33e5753bd9b83bdcb92ee59834d8ada036edafd2
2022-08-14 01:14:53 +08:00

21 lines
395 B
Text

'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(' ');
};