StringManipulation
StringManipulation copied to clipboard
Decrementation pattern grabs "-"
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:
- Use a line like "0.0.3-SNAPSHOT"
- try incrementing
- 0.0.4-SNAPSHOT
- try decrementing
- 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