Skip to content

Commit 2033ced

Browse files
author
Brian Vaughn
committed
Made fallback regex more multiline friendly
1 parent 6474d2f commit 2033ced

File tree

1 file changed

+1
-1
lines changed
  • packages/react-devtools-shared/src/backend

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/backend/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const APPEND_STACK_TO_METHODS = ['error', 'trace', 'warn'];
2020
const PREFIX_REGEX = /\s{4}(in|at)\s{1}/;
2121
// Firefox and Safari have no prefix ("")
2222
// but we can fallback to looking for location info (e.g. "foo.js:12:345")
23-
const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+$/;
23+
const ROW_COLUMN_NUMBER_REGEX = /:\d+:\d+(\n|$)/;
2424

2525
const injectedRenderers: Map<
2626
ReactRenderer,

0 commit comments

Comments
 (0)