fix(frontend): remove unused pattern check

This commit is contained in:
yassinedorbozgithub 2024-10-26 09:57:26 +01:00
parent 203747a2a4
commit 280cf7ee88

View File

@ -268,7 +268,7 @@ const PatternInput: FC<PatternInputProps> = ({
{...registerInput(t("message.regex_is_invalid"), idx, {
validate: (pattern) => {
try {
if (isRegex(pattern)) new RegExp(pattern.slice(1, -1));
new RegExp(pattern.slice(1, -1));
return true;
} catch (_e) {