Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
605 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = void 0;
|
---|
7 |
|
---|
8 | var _parseTrbl = _interopRequireDefault(require("./parseTrbl"));
|
---|
9 |
|
---|
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
11 |
|
---|
12 | var _default = v => {
|
---|
13 | const value = (0, _parseTrbl.default)(v);
|
---|
14 |
|
---|
15 | if (value[3] === value[1]) {
|
---|
16 | value.pop();
|
---|
17 |
|
---|
18 | if (value[2] === value[0]) {
|
---|
19 | value.pop();
|
---|
20 |
|
---|
21 | if (value[0] === value[1]) {
|
---|
22 | value.pop();
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
26 |
|
---|
27 | return value.join(' ');
|
---|
28 | };
|
---|
29 |
|
---|
30 | exports.default = _default;
|
---|
31 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.