Skip to content

Decrementation pattern grabs "-" #260

@WojciechRydzewski

Description

@WojciechRydzewski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions