From 8a205a5a746a3deeb7fc809c889da54120786928 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);