MCPcopy Index your code
hub / github.com/react/react / isStringComponentStack

Function isStringComponentStack

packages/react-devtools-shared/src/hook.js:38–40  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

36const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/;
37
38function isStringComponentStack(text: string): boolean {
39 return PREFIX_REGEX.test(text) || ROW_COLUMN_NUMBER_REGEX.test(text);
40}
41
42// We add a suffix to some frames that older versions of React didn't do.
43// To compare if it's equivalent we strip out the suffix to see if they're

Callers 1

overrideMethodFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected