mirror of
https://github.com/actions/runner.git
synced 2025-12-13 10:05:23 +00:00
26 lines
1001 B
C#
26 lines
1001 B
C#
using System.Globalization;
|
|
|
|
namespace GitHub.DistributedTask.Pipelines
|
|
{
|
|
public static class PipelineStrings
|
|
{
|
|
public static string ExpressionInvalid(object arg0)
|
|
{
|
|
const string Format = @"'{0}' is not a valid expression. Expressions must be enclosed with '$[' and ']'.";
|
|
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
|
}
|
|
|
|
public static string InvalidRegexOptions(object arg0, object arg1)
|
|
{
|
|
const string Format = @"Provider regex options '{0}' are invalid. Supported combination of flags: `{1}`. Eg: 'IgnoreCase, Multiline', 'Multiline'";
|
|
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
|
}
|
|
|
|
public static string RegexFailed(object arg0, object arg1)
|
|
{
|
|
const string Format = @"Regular expression failed evaluating '{0}' : {1}";
|
|
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
|
}
|
|
}
|
|
}
|