MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _strip_panel_count

Function _strip_panel_count

unity_cli/api/uitree.py:14–16  ·  view source on GitHub ↗

Remove trailing `` (N)`` suffix from a panel name.

(name: str)

Source from the content-addressed store, hash-verified

12
13
14def _strip_panel_count(name: str) -> str:
15 """Remove trailing `` (N)`` suffix from a panel name."""
16 return _PANEL_COUNT_RE.sub("", name)
17
18
19class UITreeAPI:

Callers 7

test_no_count_suffixMethod · 0.90
test_zero_countMethod · 0.90
test_empty_stringMethod · 0.90
_add_panel_paramMethod · 0.85

Calls

no outgoing calls

Tested by 6

test_no_count_suffixMethod · 0.72
test_zero_countMethod · 0.72
test_empty_stringMethod · 0.72