mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 07:26:05 +12:00
Added $response$ syntax to custom uploader
This commit is contained in:
parent
421ea7fc86
commit
b616fe6806
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue