Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ is_optional
Function
is_optional
engine/docs/script_doc.py:413–418 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
411
return
""
, s
412
413
def
is_optional(str):
414
m = re.search(r
'^\[(.*)\]'
, str)
415
if
m and m.group(1):
416
return
True, m.group(1)
417
418
return
False, str
419
420
421
LUA_TYPES = [
Callers
1
_create_doc_element
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected