josm icon indicating copy to clipboard operation
josm copied to clipboard

Issue 23943 - allow negative indices in substring to remove from the end of the string

Open Famlam opened this issue 1 year ago • 0 comments

https://josm.openstreetmap.de/ticket/23943

Summarized, see ticket for details:

  • Current behavior: StringIndexOutOfBoundsException
  • Current methods to remove a fixed number of characters from the end of the string: ugly workarounds are necessary to obtain the desired behavior (unless the length of the string is already known beforehand, in which a hardcoded index can be used)
  • Proposed method: allow negative end indices to remove characters from the end of the string

Famlam avatar Sep 29 '24 17:09 Famlam