Skip to content

Commit

Permalink
Adjust mono-generator for string.Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Feb 1, 2019
1 parent 336c3b7 commit d65337d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ private static string RemoveWrappingStringQuotes(string stringValue)
// Remove wrapping single quotes.
if (stringValue.StartsWith("'") && stringValue.EndsWith("'"))
{
return stringValue.Trim('\'');
return stringValue.Trim(new[] { '\'' });
}
// Remove wrapping double quotes.
else if (stringValue.StartsWith("\"") && stringValue.EndsWith("\""))
{
return stringValue.Trim('\"');
return stringValue.Trim(new[] { '\"' });
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Uno.MonoAnalyzers/MonoNotSupportedAPIAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public Container(Compilation compilation, MonoNotSupportedAPIAnalyzer owner)
"Split",
"TrimStart",
"TrimEnd",
"Trim",
"IndexOfAny",
"Join",
"StartsWith",
Expand Down

0 comments on commit d65337d

Please sign in to comment.