From 3571b35c5ff7cee8113130be5a88e210cb4b69e9 Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Fri, 16 Aug 2024 15:38:30 +0930 Subject: [PATCH] fix(regex): Remove regex101 link when cloning a regex pattern --- frontend/src/components/regex/RegexManager.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/regex/RegexManager.jsx b/frontend/src/components/regex/RegexManager.jsx index 405eac6..62435a7 100644 --- a/frontend/src/components/regex/RegexManager.jsx +++ b/frontend/src/components/regex/RegexManager.jsx @@ -46,7 +46,12 @@ function RegexManager() { }; const handleCloneRegex = (regex) => { - const clonedRegex = { ...regex, id: 0, name: `${regex.name} [COPY]` }; + const clonedRegex = { + ...regex, + id: 0, + name: `${regex.name} [COPY]`, + regex101Link: '', // Remove the regex101 link when cloning + }; handleOpenModal(clonedRegex); };