Nate Wiger | 11 Feb 21:20

Re: [FormBuilder] validate + commas in FB source files

On 2/9/07, kevin montuori <montuori <at> gmail.com> wrote:
> would there be any interest in changing File.pm (~ line 155) from:
>
>    # split commas
>    @val = split /\s*,\s*/, $line;
>
> to something like:
>
>    # split commas
>    my $split_regex = lc $term eq 'validate'
>      ? qr/\s*(?<!\\),\s*/ : qr/\s*,\s*/;
>    @val = split $split_regex, $line;

Sounds like a reasonable addition. I believe there was also some talk
on the list a short while ago about something similar for the js*
options. Can you check whether the same option would work to maintain
jsfunc et al intact?

-Nate
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers


Gmane