Skip to content

Commit

Permalink
Clean up eager component stack regexes
Browse files Browse the repository at this point in the history
Summary:
Clean up from a previous diff.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D23475250

fbshipit-source-id: 3f390134e684bbe95b584dc01b8272a29cecc0af
  • Loading branch information
rickhanlonii authored and facebook-github-bot committed Sep 2, 2020
1 parent b5b4a70 commit 87b91c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/LogBox/Data/parseLogBoxLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 87b91c0

Please sign in to comment.