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

Mike Rylander mrylander at gmail.com
Mon Oct 12 16:27:02 EDT 2009


On Mon, Oct 12, 2009 at 2:13 PM, Laura Cassell <lcassell at esilibrary.com> wrote:
> 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.

Applied liberally. (Every open branch.)

Thanks!

--miker

>
> 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
>
>
> Index: org_unit.html
> ===================================================================
> --- 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>
>
>



-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  miker at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list