MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / hasConsoleSubstitutions

Function hasConsoleSubstitutions

packages/core/src/logs/utils.ts:47–50  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

45 * @returns true if the string contains console substitution patterns
46 */
47export 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.

Callers 2

setupFunction · 0.90
defaultExtractAttributesFunction · 0.90

Calls 1

testMethod · 0.65

Tested by

no test coverage detected