Skip to content

Commit

Permalink
chore: Fix windows UWP build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Oct 19, 2023
1 parent 1b38785 commit 5c2e4fc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,11 @@ private static (string FileName, int FileLine, int LinePosition) GetDebugParseCo
}

private static string StartEnd(string str, uint chars = 10)
#if WINDOWS_UWP
=> str.Substring(0, Math.Min((int)chars * 2, str.Length - 1));
#else
=> str.Length <= chars ? str : $"{str[..(int)chars]}...{str[^(int)chars..]}";
#endif
#endregion
}
#endif

0 comments on commit 5c2e4fc

Please sign in to comment.