in build/Build.cs [16:25]
public static string Until(this string source, string marker)
{
if (string.IsNullOrEmpty(source)) return source;
var length = source.IndexOf(marker, StringComparison.OrdinalIgnoreCase);
if (length < 0 || length > source.Length) return source;
return source.Substring(0, length);
}