Add better support for 19h1_* branches
parent
7b829aa0a8
commit
dee85fc12d
|
@ -155,12 +155,15 @@ namespace BuildFeed.Model
|
|||
private void GenerateFamily()
|
||||
{
|
||||
// start with lab-based overrides
|
||||
if (Lab?.StartsWith("rs5", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||
if (Lab?.StartsWith("19h1", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||
{
|
||||
Family = ProjectFamily.SAR_19H1;
|
||||
}
|
||||
else if (Lab?.StartsWith("rs5", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||
{
|
||||
Family = ProjectFamily.Redstone5;
|
||||
}
|
||||
else
|
||||
if (Lab?.StartsWith("rs4", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||
else if (Lab?.StartsWith("rs4", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||
{
|
||||
Family = ProjectFamily.Redstone4;
|
||||
}
|
||||
|
|
|
@ -576,7 +576,7 @@ namespace BuildFeed.Controllers
|
|||
StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
Match m = Regex.Match(line,
|
||||
@"(([\d]{1,2})\.([\d]{1,2})\.)?([\d]{4,5})(\.([\d]{1,5}))?(\.| \()([a-zA-Z][a-zA-Z0-9._\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)\)?");
|
||||
@"(([\d]{1,2})\.([\d]{1,2})\.)?([\d]{4,5})(\.([\d]{1,5}))?(\.| \()([a-zA-Z0-9][a-zA-Z0-9_\(\)]+?)\.(\d\d\d\d\d\d-\d\d\d\d)\)?");
|
||||
if (m.Success)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -179,7 +179,7 @@ else
|
|||
.change(function()
|
||||
{
|
||||
var regex =
|
||||
/(([\d]{1,2})\.([\d]{1,2})\.)?([\d]{4,5})(\.([\d]{1,5}))?(\.| \()([a-zA-Z][a-zA-Z0-9._\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)\)?/;
|
||||
/(([\d]{1,2})\.([\d]{1,2})\.)?([\d]{4,5})(\.([\d]{1,5}))?(\.| \()([a-zA-Z0-9][a-zA-Z0-9_\(\)]+?)\.(\d\d\d\d\d\d-\d\d\d\d)\)?/;
|
||||
var result = regex.exec($("#quickpaste").val());
|
||||
|
||||
$("#MajorVersion").val(result[2]);
|
||||
|
|
Loading…
Reference in New Issue