Added $response$ syntax to custom uploader

This commit is contained in:
Jaex 2017-08-30 19:12:31 +03:00
parent 421ea7fc86
commit b616fe6806

View file

@ -239,7 +239,11 @@ private string ParseSyntax(string syntax, bool output)
{
CustomUploaderResponseParseType parseType;
if (syntax.StartsWith("regex:", StringComparison.InvariantCultureIgnoreCase)) // Example: $regex:1,1$
if (syntax.Equals("response", StringComparison.InvariantCultureIgnoreCase)) // Example: $response$
{
return response;
}
else if (syntax.StartsWith("regex:", StringComparison.InvariantCultureIgnoreCase)) // Example: $regex:1,1$
{
parseType = CustomUploaderResponseParseType.Regex;
syntax = syntax.Substring(6);