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 1eec5db commit 0b6618aCopy full SHA for 0b6618a
packages/react-devtools-shared/src/hook.js
@@ -181,12 +181,13 @@ export function installHook(target: any): DevToolsHook | null {
181
inputArgs === null ||
182
inputArgs.length === 0 ||
183
// Matches any of %c but not %%c
184
- (typeof inputArgs[0] === 'string' && inputArgs[0].match(/([^%]|^)(%c)/g)) ||
+ (typeof inputArgs[0] === 'string' &&
185
+ inputArgs[0].match(/([^%]|^)(%c)/g)) ||
186
style === undefined
187
) {
188
return inputArgs;
189
}
-
190
+
191
// Matches any of %(o|O|d|i|s|f), but not %%(o|O|d|i|s|f)
192
const REGEXP = /([^%]|^)(%([oOdisf]))/g;
193
if (inputArgs[0].match(REGEXP)) {
0 commit comments