StringManipulation icon indicating copy to clipboard operation
StringManipulation copied to clipboard

Decrementation pattern grabs "-"

Open WojciechRydzewski opened this issue 6 months ago • 0 comments

Describe the bug When trying to decrement Versions in a pom.xml it didn't work properly. The increment works though.

To Reproduce Steps to reproduce the behavior:

  1. Use a line like "0.0.3-SNAPSHOT"
  2. try incrementing
  3. 0.0.4-SNAPSHOT
  4. try decrementing
  5. 0.0.3-1SNAPSHOT Expected behavior The number is decresead

Additional context i guess the pattern decrementation is not greedy enough and matches a "-" as a zero

WojciechRydzewski avatar Aug 20 '25 14:08 WojciechRydzewski