[[JavaScript]]の`endsWith()`みたいな処理。
```lua
local function ends_with(str, ending)
return ending == "" or str:sub(-#ending) == ending
end
vim.notify(tostring(ends_with("hoge", "ge")), vim.log.levels.INFO)
-- true
vim.notify(tostring(ends_with("hoge", "g")), vim.log.levels.INFO)
-- false
```