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