defold / defold/doc

Fix Editor Scripts manual - no ends_with function

Open
#577 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
146
Forks
128
Avg merge
1d 10h
Merged PRs (30d)
9

Description

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,
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.