-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vergo:minor-release] Fix bug in tag prefix trimming (#12)
The tag prefix trimming was using `strings.TrimLeft`, which gave an incorrect result if the tag prefix happened to contain a digit that was also in the version number. For example: `myapp1-1.0.0` would be trimmed to `.0.0` rather than `1.0.0`. The correct function to use in this case is `strings.TrimPrefix`.
- Loading branch information
1 parent
9d2e3f5
commit 49aded0
Showing
3 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters