MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseControllersField

Function parseControllersField

src/resolution/frameworks/nestjs.ts:613–620  ·  view source on GitHub ↗
(args: string)

Source from the content-addressed store, hash-verified

611}
612
613function parseControllersField(args: string): string[] {
614 const inner = parseArrayField(args, 'controllers');
615 if (inner === null) return [];
616 return inner
617 .split(',')
618 .map((s) => s.trim())
619 .filter((s) => /^[A-Za-z_$][\w$]*$/.test(s));
620}
621
622/**
623 * Starting just after a class decorator's `)`, return the name of the class

Callers 1

collectModuleControllersFunction · 0.85

Calls 1

parseArrayFieldFunction · 0.85

Tested by

no test coverage detected