From 87b91c057caac917f4187e0ef06836a820c0700f Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 2 Sep 2020 09:58:25 -0700 Subject: [PATCH] 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 --- Libraries/LogBox/Data/parseLogBoxLog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LogBox/Data/parseLogBoxLog.js b/Libraries/LogBox/Data/parseLogBoxLog.js index c382ca301b37de..e9021e9b4192de 100644 --- a/Libraries/LogBox/Data/parseLogBoxLog.js +++ b/Libraries/LogBox/Data/parseLogBoxLog.js @@ -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 (