diff --git a/assets/index.js b/assets/index.js index fab14096..14fa349b 100644 --- a/assets/index.js +++ b/assets/index.js @@ -103,9 +103,7 @@ document.addEventListener("DOMContentLoaded", function() { if (isValidHttpUrl(ev.location)) { a.href = ev.location; } else { - a.href = 'https://www.openstreetmap.org/search?query=' + - encodeURIComponent(ev.location + - (ev.location.match(/, (\d+ )?[a-zA-Z ]+$/)? "" : ", Bremen")); + a.href = 'https://www.openstreetmap.org/search?query=' + encodeURIComponent(ev.location + (ev.location.match(/, (\d+ )?[a-zA-Z ]+$/)? "" : ", Bremen")); } a.textContent = ev.location; loc.appendChild(a);