Skip to content

Decrementation pattern grabs "-" #260

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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