Skip to content

str v1.0.5 is out!

Compare
Choose a tag to compare
@EvandroLG EvandroLG released this 05 May 17:15
· 22 commits to master since this release

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 to match parameter. If the value is not found, it returns nil.

    • str.truncate(value:string, options: table):string
      Truncates string if it's longer than the size value passed by parameter.