We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e98033 commit 6474d2fCopy full SHA for 6474d2f
packages/react-devtools-shared/src/backend/console.js
@@ -111,8 +111,8 @@ export function patch(): void {
111
const lastArg = args.length > 0 ? args[args.length - 1] : null;
112
const alreadyHasComponentStack =
113
lastArg !== null &&
114
- (PREFIX_REGEX.exec(lastArg) ||
115
- ROW_COLUMN_NUMBER_REGEX.exec(lastArg));
+ (PREFIX_REGEX.test(lastArg) ||
+ ROW_COLUMN_NUMBER_REGEX.test(lastArg));
116
117
if (!alreadyHasComponentStack) {
118
// If there's a component stack for at least one of the injected renderers, append it.
0 commit comments