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

Function parseStringArg

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

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

Callers 2

extractFunction · 0.85
parseControllerPrefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected