mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Added comments
This commit is contained in:
parent
54d0c0a533
commit
2781fb78dd
|
@ -362,8 +362,7 @@ private string ParseSyntaxJson(string syntaxJsonPath)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://www.w3schools.com/xsl/xpath_syntax.asp
|
// https://www.w3schools.com/xml/xpath_syntax.asp
|
||||||
// https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx
|
|
||||||
private string ParseSyntaxXml(string syntaxXPath)
|
private string ParseSyntaxXml(string syntaxXPath)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(syntaxXPath))
|
if (!string.IsNullOrEmpty(syntaxXPath))
|
||||||
|
|
|
@ -34,6 +34,7 @@ internal class CustomUploaderFunctionJson : CustomUploaderFunction
|
||||||
|
|
||||||
public override string Call(CustomUploaderSyntaxParser parser, string[] parameters)
|
public override string Call(CustomUploaderSyntaxParser parser, string[] parameters)
|
||||||
{
|
{
|
||||||
|
// https://goessner.net/articles/JsonPath/
|
||||||
string jsonPath = parameters[0];
|
string jsonPath = parameters[0];
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(jsonPath))
|
if (!string.IsNullOrEmpty(jsonPath))
|
||||||
|
|
|
@ -35,6 +35,7 @@ internal class CustomUploaderFunctionXml : CustomUploaderFunction
|
||||||
|
|
||||||
public override string Call(CustomUploaderSyntaxParser parser, string[] parameters)
|
public override string Call(CustomUploaderSyntaxParser parser, string[] parameters)
|
||||||
{
|
{
|
||||||
|
// https://www.w3schools.com/xml/xpath_syntax.asp
|
||||||
string xpath = parameters[0];
|
string xpath = parameters[0];
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(xpath))
|
if (!string.IsNullOrEmpty(xpath))
|
||||||
|
|
Loading…
Reference in a new issue