[Html-widget] HTTP Constraint patch

Carl Franks fireartist at gmail.com
Fri Aug 4 10:55:09 CEST 2006

On 02/07/06, Adam Herzog <adam at herzogdesigns.com> wrote:
> H::W::C::HTTP invalidates empty fields.
> This minor change (with a test) will let empty fields pass the HTTP
> constraint. If the field is required, users should use an All
> constraint as well.

Hi Adam,

Thanks for this.
As HTTP is a sub-class of the Regex constraint, I've instead changed
the Regex constraint to allow the empty string.
I've also changed the Number constraint to allow the empty string.
This makes them more constistent with other constraints - namely all
the other Regex based constraints which already used a * to make the
entire match optional.

Added to svn as version 48.


More information about the Html-widget mailing list