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+)+$"> + <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+)+$">
+                                                                       <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>

Reply via email to