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

Function parseStringArg

src/resolution/frameworks/nestjs.ts:687–690  ·  view source on GitHub ↗

First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`).

(args: string)

Source from the content-addressed store, hash-verified

685
686/** First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`). */
687function parseStringArg(args: string): string {
688 const m = args.match(/['"`]([^'"`]*)['"`]/);
689 return m ? m[1]! : '';
690}
691
692/** `@Controller('users')` | `@Controller({ path: 'users', host })` | `@Controller(['a','b'])` | `@Controller()`. */
693function parseControllerPrefix(args: string): string {

Callers 2

extractFunction · 0.85
parseControllerPrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected