MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / trim_prefix

Function trim_prefix

backend/app/services/ui/sample_code.py:16–24  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

14
15
16def trim_prefix(s: str):
17 # Find the index of the first '_' character
18 index = s.find("_")
19 # If '-' is found, return the substring starting from the next character to the end
20 if index != -1:
21 return s[index + 1 :]
22
23 # Return an empty string if '_' is not found
24 return ""
25
26
27def get_sample_codes(module: SampleCodeModule):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected