Clean up eager component stack regexes

Summary:
Clean up from a previous diff.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D23475250

fbshipit-source-id: 3f390134e684bbe95b584dc01b8272a29cecc0af
This commit is contained in:
Rick Hanlon 2020-09-02 09:58:25 -07:00 коммит произвёл Facebook GitHub Bot
Родитель b5b4a70410
Коммит 87b91c057c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -131,8 +131,8 @@ export function parseInterpolation(
}
function isComponentStack(consoleArgument: string) {
const isOldComponentStackFormat = /\s{4}in/.test(consoleArgument);
const isNewComponentStackFormat = /\s{4}at/.test(consoleArgument);
const isOldComponentStackFormat = / {4}in/.test(consoleArgument);
const isNewComponentStackFormat = / {4}at/.test(consoleArgument);
const isNewJSCComponentStackFormat = /@.*\n/.test(consoleArgument);
return (