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

Function parseControllersField

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

Source from the content-addressed store, hash-verified

831}
832
833function parseControllersField(args: string): string[] {
834 const inner = parseArrayField(args, 'controllers');
835 if (inner === null) return [];
836 return inner
837 .split(',')
838 .map((s) => s.trim())
839 .filter((s) => /^[A-Za-z_$][\w$]*$/.test(s));
840}
841
842/**
843 * Starting just after a class decorator's `)`, return the name of the class

Callers 1

collectModuleControllersFunction · 0.85

Calls 2

parseArrayFieldFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected