added Trim to query
This commit is contained in:
parent
8b8248388f
commit
c81f83becc
@ -655,7 +655,7 @@ namespace Salesforce.NET
|
|||||||
|
|
||||||
private static string FormatQuery(string query)
|
private static string FormatQuery(string query)
|
||||||
{
|
{
|
||||||
query = Regex.Replace(query, "[\r\n\t]", string.Empty);
|
query = Regex.Replace(query.Trim(), "[\r\n\t]", string.Empty);
|
||||||
query = Regex.Replace(query, "[ ]{2,}", " ");
|
query = Regex.Replace(query, "[ ]{2,}", " ");
|
||||||
query = WebUtility.UrlEncode(query);
|
query = WebUtility.UrlEncode(query);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user