From 78ed1311806ef92153f23138d41e987633871402 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 19 Apr 2021 12:39:10 -0400 Subject: [PATCH] Replace multiple ids in error message --- .../src/devtools/views/ErrorBoundary/githubAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-devtools-shared/src/devtools/views/ErrorBoundary/githubAPI.js b/packages/react-devtools-shared/src/devtools/views/ErrorBoundary/githubAPI.js index e8392d89799ae..571940e79b63f 100644 --- a/packages/react-devtools-shared/src/devtools/views/ErrorBoundary/githubAPI.js +++ b/packages/react-devtools-shared/src/devtools/views/ErrorBoundary/githubAPI.js @@ -18,7 +18,7 @@ export async function searchGitHubIssues( message: string, ): Promise { // Remove Fiber IDs from error message (as those will be unique). - message = message.replace(/"[0-9]+"/, ''); + message = message.replace(/"[0-9]+"/g, ''); const filters = [ 'in:title',