Skip to content

Commit

Permalink
Bugfix: incomplete definition for truncateString
Browse files Browse the repository at this point in the history
(cherry picked from commit 7080458)
  • Loading branch information
rhennigan committed Oct 30, 2023
1 parent fcfe4c2 commit 353f842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Chatbook/Serialization.wl
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,8 @@ truncateString[ str_String, max_Integer ] := truncateString[ str, Ceiling[ max /
truncateString[ str_String, l_Integer, r_Integer ] /; StringLength @ str <= l + r + 5 := str;
truncateString[ str_String, l_Integer, r_Integer ] := StringTake[ str, l ] <> " ... " <> StringTake[ str, -r ];
truncateString[ other_ ] := other;
truncateString[ other_, _Integer ] := other;
truncateString[ other_, _Integer, _Integer ] := other;

(* ::**************************************************************************************************************:: *)
(* ::Subsubsection::Closed:: *)
Expand Down

0 comments on commit 353f842

Please sign in to comment.