(str: string)
| 45 | * @returns true if the string contains console substitution patterns |
| 46 | */ |
| 47 | export function hasConsoleSubstitutions(str: string): boolean { |
| 48 | // Match console substitution patterns: %s, %d, %i, %f, %o, %O, %c |
| 49 | return /%[sdifocO]/.test(str); |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Creates template attributes for multiple console arguments. |
no test coverage detected