mirror of
https://github.com/hexastack/hexabot
synced 2024-11-23 01:55:15 +00:00
fix(frontend): remove unused pattern check
This commit is contained in:
parent
203747a2a4
commit
280cf7ee88
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user