http://mf34jlghauz5pxjcmdymdqbe5pva4v24logeys446tdrgd5lpsrocmqd.onion/api/util/str_tools.html
If a cropped string ends with a comma or period then it's stripped (unless
we're providing the remainder back). For example... > > > crop ( ' This is a looooong message ' , 17 ) ' This is a looo... ' > > > crop ( ' This is a looooong message ' , 12 ) ' This is a... ' > > > crop ( ' This is a looooong message ' , 3 ) ' ' The whole point of this method is to provide human friendly croppings, and as
such details of how this works might change in the future.