Subject: | validate regex split on commas |
Using commas in a validate regex in a source file causes the regex to
always fail as it has been split/loaded incorrectly:
description:
validate: '/^.{1,25}$/'
Even if myfield has a submitted value of abcdef, it will still fail.
The debug logs yield:
[CGI::FormBuilder::Field::validate] (debug2) description: is 'abcdef' in
('/^.{1 25}$/') ?
[CGI::FormBuilder::Field::validate] (debug2) description: pattern FAILED
[CGI::FormBuilder::Field::validate] (debug1) description: validation FAILED
See also:
http://article.gmane.org/gmane.comp.lang.perl.modules.formbuilder/930/match=regex
Oddly enough, the error message printed for this field is "Please fill
this in", which seems wrong for a textarea field as it IS filled in.
test inputs fail validation with "Invalid Entry"....seems like a
disconnect there...