getgrav / getgrav/grav-plugin-form

multiple AND-combinated `validate.pattern` clause

Open
#310 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

It's sometimes easier to provide multiple patterns for a given field rather than trying to put all several constraints into one regex.
Example: test that a value is an actual URL and contains at least a set of handful fields.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the form plugin currently parses and applies validate.pattern clauses. Confirm the intended syntax for supplying multiple patterns and how existing validation errors are reported. Done means a field can require all supplied patterns to match, with coverage for the URL-and-fields example and no regression for single patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.