string_ext

string_ext.string.ends_with

Declaration
lua
string.ends_with(text, suffix)
Description
Check if string ends with suffix.
Parameters
`text`, `suffix` (string)
Return Values
`boolean`
Example
lua
local ok = ("hello.txt"):ends_with(".txt")