[OPEN-ILS-DEV] email regex patch--this time with more splat!

Laura Cassell lcassell at esilibrary.com
Mon Oct 12 14:13:55 EDT 2009


yeah, so I forgot the * so that we can have zero or more instances of 
.[word] -- proper patch is attached, and I updated the doff below to 
reflect the change in case anyone wants to see it.

thanks!

Laura Cassell wrote:
> So, I was noticing that our email regex in the org_unit.html only 
> allows a word, then an @ then words, .'s and more words.  A library 
> needed to have the ability to have periods in the beginning name, so I 
> just made a quick fix.  It's far from elegant; but it gets the job 
> done.  Patch is attached.
>
> Thanks, guys!
>
>
> ===================================================================
> --- org_unit.html       (revision 14375)
> +++ org_unit.html       (working copy)
> @@ -239,7 +239,7 @@
>                                                        <tr>
>                                                                
> <th>&conify.org_unit.editor_pane.main_email;</th>
>                                                                <td>
> -                                                                       
> <span id="editor_pane_email" dojoType="dijit.form.ValidationTextBox" 
> jsId="editor_pane_email" regExp="^\w+\@\w+(?:\.\w+)+$">
> +                                                                       
> <span id="editor_pane_email" dojoType="dijit.form.ValidationTextBox" 
> jsId="editor_pane_email" regExp="^\w+(?:\.\w+)*\@\w+(?:\.\w+)+$">
>                                                                                
> <script type="dojo/connect" event="onChange">
>                                                                                        
> if (current_ou) ou_list_store.setValue( current_ou, "email", 
> this.getValue() );
>                                                                                
> </script>
>
>
>
>
> Laura Cassell

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: emailregex_ou.patch
Url: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20091012/39dc83d9/attachment.txt 


More information about the Open-ils-dev mailing list