fix(regex): Remove regex101 link when cloning a regex pattern

This commit is contained in:
santiagosayshey
2024-08-16 15:38:30 +09:30
committed by Sam Chau
parent fe768935f8
commit 3571b35c5f

View File

@@ -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);
};