From a267861ce2f65a80f47f478de04315ed356868ba Mon Sep 17 00:00:00 2001 From: tmeissner Date: Fri, 29 Mar 2013 12:06:30 +0100 Subject: [PATCH] =?UTF-8?q?removed=20replacing=20=C3=9F=20with=20s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/haltestellen.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/haltestellen.js b/scripts/haltestellen.js index cc7d817..92e8fd6 100644 --- a/scripts/haltestellen.js +++ b/scripts/haltestellen.js @@ -70,9 +70,8 @@ var DEBUG; // replace useless chars & split string into array data = data.replace(/\(.+?\)/gi, ''); // remove all content in round parentheses - data = data.replace('ß', 'ss'); // remove some special characters data = data.replace(/<(.+?)>/gi, '$1'); // remove tag parentheses to prevent code injection - data = data.slice(3, -3).split("],["); // split at array boundaries to get an array of arrays + data = data.slice(3, -3).split("],["); // split at array boundaries to get an array of arrays // debug log if (DEBUG === 1) {console.log("parsed data: " + data);} @@ -155,10 +154,9 @@ var DEBUG; // replace useless chars & split string into array data = data.replace(/\[\[\[.+?\]\],/gi, '['); // remove useless first city entry - data = data.replace(/\(.+?\)/gi, ''); // remove all content in round parentheses - data = data.replace('ß', 'ss'); // remove some special characters - data = data.replace(/<(.+?)>/gi, '$1'); // remove tag parentheses to prevent code injection - data = data.slice(4, -4).split("],["); // split at array boundaries to get an array of arrays + data = data.replace(/\(.+?\)/gi, ''); // remove all content in round parentheses + data = data.replace(/<(.+?)>/gi, '$1'); // remove tag parentheses to prevent code injection + data = data.slice(4, -4).split("],["); // split at array boundaries to get an array of arrays // debug log if (DEBUG === 1) {console.log("parsed data: " + data);}