Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 7b71e76

Browse files
committed
Update StringSpanExtensions.cs
1 parent 1a71363 commit 7b71e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/StringSpanExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public static ReadOnlySpan<char> SafeSlice(this ReadOnlySpan<char> value, int st
544544
public static string SubstringWithEllipsis(this ReadOnlySpan<char> value, int startIndex, int length)
545545
{
546546
if (value.IsEmpty) return string.Empty;
547-
var str = value.Slice(startIndex, length);
547+
var str = value.SafeSlice(startIndex, length);
548548
return str.Length == length
549549
? str.ToString() + "..."
550550
: str.ToString();

0 commit comments

Comments
 (0)