From 9bdb793c4ed88d9a4142b6a3049b7ec5f82213f8 Mon Sep 17 00:00:00 2001 From: Lachlan Campbell Date: Wed, 9 Dec 2020 02:48:54 -0500 Subject: [PATCH] Fix double-quoted hotlinks in dev error panel (#19974) Fixes #19923. Before: Screen Shot 2020-12-08 at 3 07 11 PM After: Screen Shot 2020-12-08 at 3 07 18 PM --- packages/react-dev-overlay/src/internal/container/Errors.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-overlay/src/internal/container/Errors.tsx b/packages/react-dev-overlay/src/internal/container/Errors.tsx index 134ec1b6ee..c77339b0c6 100644 --- a/packages/react-dev-overlay/src/internal/container/Errors.tsx +++ b/packages/react-dev-overlay/src/internal/container/Errors.tsx @@ -58,7 +58,7 @@ const HotlinkedText: React.FC<{ }> = function HotlinkedText(props) { const { text } = props - const linkRegex = /https?:\/\/[^\s/$.?#].[^\s]*/i + const linkRegex = /https?:\/\/[^\s/$.?#].[^\s"]*/i return ( <> {linkRegex.test(text) -- GitLab