Skip to content

Commit

Permalink
Adding a regex for + removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
fkurmannucsc committed Jul 3, 2024
1 parent 37c9d03 commit fead479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fead479

Please sign in to comment.