Skip to content

Commit

Permalink
Update CustomRgxpListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyborn authored Dec 6, 2022
1 parent d1b1c0a commit 7dd3d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/Hooks/CustomRgxpListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') );
}

Expand Down

0 comments on commit 7dd3d50

Please sign in to comment.