Skip to content

Commit f4575cc

Browse files
Merge pull request #5 from lumapps/fix/fix-prefix-matcher
chore(tag): modify prefix tag pattern matcher to support more cases
2 parents 822a4db + ab0a6be commit f4575cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

changelog_generator/tag_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class PrefixedTagManager(BaseTagManager):
7878
"""
7979

8080
PATTERN = re.compile(
81-
r"^(?P<prefix>\w+)/(?P<major>\d+)\.(?P<minor>\d+)\.((?P<bug>\d+)|rc(?P<rc>\d+))?$"
81+
r"^(?P<prefix>[\w-]+)/(?P<major>\d+)\.(?P<minor>\d+)\.((?P<bug>\d+)|rc(?P<rc>\d+))?$"
8282
)
8383

8484
def __init__(self, repository: Repo, prefix: str):

0 commit comments

Comments
 (0)