Browse Source

fixed bug in regexp (match too long, fixed by +? for shortest match) of replace call to remove parentheses

master
T. Meissner 12 years ago
parent
commit
6d1b570e73
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