Skip to content

Releases: EvandroLG/str

str v1.5.0 is out!

21 Jun 20:54
Compare
Choose a tag to compare

What's new?

Added new methods:

  • str. unescape(value:string):string
    Converts the HTML entities &, <, >, " and ' in string to their corresponding characters

  • str. escape(value:string):string
    Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding html entities

  • str. includes(value:string, substr:string):boolean
    Determines wether the substring was found within the string

  • str. index_of(value:string, substr:string):number
    Returns the position of the first occurrence of a specific substring

  • str. camel_case(value:string):string
    Converts string to camel case

  • str. kebab_case(value:string):string
    Converts string to kebab case

  • str. snake_case(value:string):string
    Converts string to snake case

str v1.0.5 is out!

05 May 17:15
Compare
Choose a tag to compare

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.

str v1.0.4 is out!

16 May 17:56
Compare
Choose a tag to compare
  • Created str.each_line method
  • Created str.each_byte method
  • Created str.each_char method