diff --git a/client/src/App.tsx b/client/src/App.tsx index 515718c..776dfe3 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -207,6 +207,7 @@ function App() {
  • Zavedení JWT, přesun autentizace na server
  • Oprava pádu v případě, že ve Sladovnické daný den nic není
  • Podpora situace, kdy ve Sladovnické je méně než 3 hlavní jídla
  • +
  • Oprava parsování cen z TechTower v případě použití nedělitelných mezer
  • Dnes je {data.date}

    diff --git a/server/src/restaurants.ts b/server/src/restaurants.ts index cd68f14..5b82d33 100644 --- a/server/src/restaurants.ts +++ b/server/src/restaurants.ts @@ -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]