Review main Abandoned

68762[FEATURE] Introduce regular expression validation in FormEngine

Johannes Schlier CR 0 V 0 Normal +64 −0 updated 07/04/23, 13:12

Commit message

A new JavaScript based regular expression validation rule
is added to FormEngine. This allows for flexible and custom
validations in specialised cases, e.g. standardized formats,
which previously required custom fields or dedicated evaluation
classes.

Therefore, TCA now features a new property `regularExpression`
with two options:

* `expression`: The regular expression, e.g. `^-?\d{1,2}(,|.)\d{4,7}$`
* `modifier`: Pattern modifiers, e.g. `i`

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3