We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ce010 commit d170bf6Copy full SHA for d170bf6
src/Converters/StringConverters.cs
@@ -86,6 +86,6 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
86
new FuncValueConverter<string, bool>(v => v != null && v.Trim().Length > 0);
87
88
public static readonly FuncValueConverter<string, string> ToFriendlyUpstream =
89
- new FuncValueConverter<string, string>(v => v != null ? v.Substring(13) : string.Empty);
+ new FuncValueConverter<string, string>(v => v is { Length: > 13 } ? v.Substring(13) : string.Empty);
90
}
91
0 commit comments