|
|
@ -16,14 +16,14 @@ function splitValues(value: string | number) {
|
|
|
|
temp += item;
|
|
|
|
temp += item;
|
|
|
|
brackets += item.split('(').length - 1;
|
|
|
|
brackets += item.split('(').length - 1;
|
|
|
|
} else if (item.includes(')')) {
|
|
|
|
} else if (item.includes(')')) {
|
|
|
|
temp += item;
|
|
|
|
temp += ` ${item}`;
|
|
|
|
brackets -= item.split(')').length - 1;
|
|
|
|
brackets -= item.split(')').length - 1;
|
|
|
|
if (brackets === 0) {
|
|
|
|
if (brackets === 0) {
|
|
|
|
list.push(temp);
|
|
|
|
list.push(temp);
|
|
|
|
temp = '';
|
|
|
|
temp = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (brackets > 0) {
|
|
|
|
} else if (brackets > 0) {
|
|
|
|
temp += item;
|
|
|
|
temp += ` ${item}`;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
list.push(item);
|
|
|
|
list.push(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|