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

Function parseStringArg

src/resolution/frameworks/nestjs.ts:467–470  ·  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

465
466/** First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`). */
467function parseStringArg(args: string): string {
468 const m = args.match(/['"`]([^'"`]*)['"`]/);
469 return m ? m[1]! : '';
470}
471
472/** `@Controller('users')` | `@Controller({ path: 'users', host })` | `@Controller(['a','b'])` | `@Controller()`. */
473function parseControllerPrefix(args: string): string {

Callers 2

extractFunction · 0.85
parseControllerPrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected