diff --git a/static/js/main.js b/static/js/main.js index b3efb57..f53f925 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -426,8 +426,8 @@ function convertCoordinatesForInput(coordinates) { return undefined; } - // Remove leading "+" from coordinates. - return coordinates.replace('+', ''); + // Remove the leading + from coordinates. + return coordinates.replace(/^\+/, ''); } // Fetch the server's version and add it to the page's title.