Skip to content

Commit aeac450

Browse files
authored
Allow A.B.C.D-text as version for packages (#12)
1 parent ab2494b commit aeac450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sdk/Tasks/DmappCreation.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ private static string CleanDmappVersion(string version)
306306
return DMAppVersion.FromProtocolVersion(version).ToString();
307307
}
308308

309-
// Check if version matches a.b.c-text
310-
if (Regex.IsMatch(version, @"^\d+\.\d+\.\d+-\w+$"))
309+
// Check if version matches a.b.c-text or a.b.c.d-text
310+
if (Regex.IsMatch(version, @"^\d+\.\d+\.\d+-\w+$") || Regex.IsMatch(version, @"^\d+\.\d+\.\d+\.\d+-\w+$"))
311311
{
312312
return DMAppVersion.FromPreRelease(version).ToString();
313313
}

0 commit comments

Comments
 (0)