]> git.openstreetmap.org Git - rails.git/commitdiff
replace all occurrences of `+`
authorMartin Raifer <martin@raifer.tech>
Wed, 12 Feb 2025 15:23:31 +0000 (16:23 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 15:23:31 +0000 (16:23 +0100)
app/assets/javascripts/edit/id.js.erb

index a855e3035e466a537ac67fd770092bb0d06849f4..2c0a022e4e3bb178b0a79ff725f556914ccf9a64 100644 (file)
@@ -33,5 +33,5 @@ $(document).ready(function () {
 
   if (id.data("gpx")) params.set("gpx", id.data("gpx"));
 
-  id.attr("src", id.data("url") + "#" + params.toString().replace("+", "%20"));
+  id.attr("src", id.data("url") + "#" + params.toString().replace(/\+/g, "%20"));
 });