From 7dd3d50788cc4a514e0a4bf5eb4c2523245020b8 Mon Sep 17 00:00:00 2001 From: Benny Born Date: Tue, 6 Dec 2022 11:44:24 +0100 Subject: [PATCH] Update CustomRgxpListener.php --- src/EventListener/Hooks/CustomRgxpListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/Hooks/CustomRgxpListener.php b/src/EventListener/Hooks/CustomRgxpListener.php index 5a39f99..b027f52 100644 --- a/src/EventListener/Hooks/CustomRgxpListener.php +++ b/src/EventListener/Hooks/CustomRgxpListener.php @@ -46,7 +46,7 @@ public function __invoke( string $regexp, $input, Widget $widget ): bool { return false; } - if( !preg_match('/^[A-Za-z0-9[\]_\.-]+$/', $input) ) { + if( !preg_match('/^[A-Za-z0-9\/[\]_\.-]+$/', $input) ) { $widget->addError( $this->translator->trans('ERR.invalidFieldName', [], 'contao_default') ); }