Browse Source

fixed bug in replace call to remove parentheses

master
T. Meissner 12 years ago
parent
commit
76ce12ff01
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/haltestellen.js

+ 1
- 1
scripts/haltestellen.js View File

@ -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);


Loading…
Cancel
Save