Skip to content

Commit

Permalink
Merge pull request #68 from ansasaki/fix_prefix
Browse files Browse the repository at this point in the history
Fixed a bug in the release name generation
  • Loading branch information
ansasaki committed May 30, 2018
2 parents 9ab4b5b + ed6cd41 commit ccbb6bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/smap/symver.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,9 @@ def get_info_from_release_string(release):
# The prefix can have trailing '_'
prefix = prefix.rstrip("_")

# Fix common unsupported characters in prefix
prefix = prefix.replace("-", "_")

# Return the information got
return [release, prefix, ver_suffix, version]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,15 @@
warnings:
- "No release provided"
exceptions:
-
input: "lib-x_1_0_0"
output:
- "lib-x_1_0_0"
- "lib_x"
- "_1_0_0"
-
- 1
- 0
- 0
warnings:
exceptions:

0 comments on commit ccbb6bd

Please sign in to comment.