From 609402424301e1468acd38e1a9a5337b08ed440a Mon Sep 17 00:00:00 2001 From: lokn <20230168+lokn@users.noreply.github.com> Date: Fri, 7 Jan 2022 20:38:58 +0100 Subject: [PATCH] fix indentation --- assets/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);