-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add null string support in StringUtils #3826
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomlm can you confirm? without this, TestBot.Json in master is broken
StringUtils fixed in microsoft#3826
@@ -32,6 +33,7 @@ public static string Ellipsis(string text, int length) | |||
/// <returns>string which is unique SHA256 hash.</returns> | |||
public static string Hash(string text) | |||
{ | |||
text = text ?? string.Empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string.Empty [](start = 26, length = 13)
This should throw new ArgumentNullException(nameof(text)) #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* create parity with OAuthPrompt * fix StringUtils fixed in #3826
close: #3825
Support
null
string inEllipsis
andHash
method