(text: string)
| 36 | const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/; |
| 37 | |
| 38 | function 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 |