From 76ce12ff019e2a316053a41cfc2f508d5486db7f Mon Sep 17 00:00:00 2001 From: tmeissner Date: Mon, 25 Feb 2013 18:25:13 +0100 Subject: [PATCH] fixed bug in replace call to remove parentheses --- scripts/haltestellen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/haltestellen.js b/scripts/haltestellen.js index dcf2e47..9e42530 100644 --- a/scripts/haltestellen.js +++ b/scripts/haltestellen.js @@ -78,7 +78,7 @@ function ajaxCall(dataUrl, outputElement, callback) { console.log("received data: " + data); data = data.replace(/\],\[/gi, '#'); - data = data.replace(/\(.+\),\[/gi, '#'); + data = data.replace(/\(.+\)/gi, ''); data = data.slice(2,-2).split("#"); console.log("parsed data: " + data);