From 31382f1229292b1734e1c4ecae27e3b6fc9764e7 Mon Sep 17 00:00:00 2001 From: soraefir Date: Thu, 24 Aug 2023 10:34:04 +0200 Subject: [PATCH] Fixing GPX parse error --- router/api.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/router/api.js b/router/api.js index 58da83b..a5a4ca6 100644 --- a/router/api.js +++ b/router/api.js @@ -51,10 +51,6 @@ module.exports = (fastify, opts, done) => { const data = JSON.parse(val); const gen_wpt = (name,desc,latlon,icon="Flag") => `0${name}-${desc}${icon}` const esc_str = (str) => str.replace('"',""").replace("'","'").replace("<","<").replace(">",">").replace("&","&").repace("\n","...") - ' - < < - > > - & & data.main.forEach(a => { file+= gen_wpt(esc_str(a.hotel.name), esc_str(a.hotel.notes), a.hotel.latlon, icon="Hotel"); a.places.restaurants.forEach(b => {