First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`).
(args: string)
| 465 | |
| 466 | /** First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`). */ |
| 467 | function 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()`. */ |
| 473 | function parseControllerPrefix(args: string): string { |
no outgoing calls
no test coverage detected