In manuals several times a function "ends_with" is used. There is no built-in "ends_with" function: ``` active = function(opts) local path = editor.get(opts.selection, "path") return ends_with(path, ".lua") or ends_with(path, ".script") end, ```