str v1.0.5 is out!
What's new from str v1.0.4?
-
Refactored all code, including unit tests
-
Added two new methods:
-
str.
find_last(value:string, match:string):string
Returns the index within the given string of the last occurrence of the specified value tomatch
parameter. If the value is not found, it returns nil. -
str.
truncate(value:string, options: table):string
Truncates string if it's longer than thesize
value passed by parameter.
-