Skip to content

Commit

Permalink
Made fallback regex more multiline friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 21, 2020
1 parent 6474d2f commit 2033ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const APPEND_STACK_TO_METHODS = ['error', 'trace', 'warn'];
const PREFIX_REGEX = /\s{4}(in|at)\s{1}/;
// Firefox and Safari have no prefix ("")
// but we can fallback to looking for location info (e.g. "foo.js:12:345")
const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+$/;
const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/;

const injectedRenderers: Map<
ReactRenderer,
Expand Down

0 comments on commit 2033ced

Please sign in to comment.