We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ce92c commit be523d0Copy full SHA for be523d0
1 file changed
libs/mcp/tasks/src/lib/mcp-task-registry.class.ts
@@ -139,8 +139,10 @@ export class MCPTaskRegistry {
139
taskFunction: IGlobalIndexedToken<GlobalFunctionToken>,
140
taskStructure: IGlobalIndexedToken<GlobalStructureToken>,
141
) {
142
+ // extract task name
143
const match = TASK_REGEX.exec(taskStructure.meta.display);
144
145
+ // return if no match - prevent errors when we don't really have a task
146
if (match === null) {
147
return;
148
}
0 commit comments