Skip to content

Commit 15b656c

Browse files
committed
do not include the first dash in preReleaseVersion
1 parent 4458bac commit 15b656c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parsers.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ in
212212
parseVersionString =
213213
versionString:
214214
let
215-
matches = lib.strings.match ''^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)([0-9a-fA-F]{40})$'' versionString;
215+
matches = lib.strings.match ''^([0-9]+)\.([0-9]+)\.([0-9]+)-(.*)([0-9a-fA-F]{40})$'' versionString;
216216
in
217217
if matches != null then
218218
{

0 commit comments

Comments
 (0)