Protect / help avoid validation logic problems

Created on 1 October 2023, over 1 year ago
Updated 31 August 2024, 5 months ago

Problem/Motivation

Using invalid regex strings result in errors like the following:

Warning: preg_match(): Unknown modifier ',' in Symfony\Component\Validator\Constraints\RegexValidator->validate() (line 47 of /var/www/html/vendor/symfony/validator/Constraints/RegexValidator.php).

Steps to reproduce

Set up a field validation with the regex plugin using a string like this: (.*),(.*)
Fill in a value into the entity form like this: something, blah
Note that the error doesn't happen if the regex string has a suffix

Proposed resolution

Work out whether the pattern fields should be validated, or whether help text could be provided to guide site builders to entering strings in the correct format.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024