Alter data validation regexp so that is not malformed by wptexturize

[MAILPOET-3440]
This commit is contained in:
Rostislav Wolny
2021-02-19 17:01:07 +01:00
committed by Veljko V
parent 5c38069caa
commit 438c9a7469
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class BlockRendererHelper {
}
if (($blockId === 'first_name') || ($blockId === 'last_name')) {
$rules['pattern'] = "^[^<>]*$";
$rules['pattern'] = "^[^><]*$";
$rules['error-message'] = __('Please specify a valid name', 'mailpoet');
}