Podpora nedělitelných mezer u názvů v TechTower

This commit is contained in:
2023-07-04 10:24:43 +02:00
parent 13f3c1178f
commit c5e3c76cc1
2 changed files with 2 additions and 1 deletions

View File

@@ -348,7 +348,7 @@ export const getMenuTechTower = async (date: Date = new Date(), mock: boolean =
let price = '? Kč';
let name = text;
if (text.endsWith('Kč')) {
const tmp = text.split(' ');
const tmp = text.replace('\xA0', ' ').split(' ');
const split = [tmp.slice(0, -2).join(' ')].concat(tmp.slice(-2));
price = split.slice(1).join(" ")
name = split[0]