Changeset 4537 for branches


Ignore:
Timestamp:
05/27/11 14:47:08 (13 years ago)
Author:
brunocosta
Message:

Ticket #1944 - muda regex de validação de nome de pastas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/js/TreeShow.js

    r3884 r4537  
    6969        Tree_Box.prototype.verify = function(exp) 
    7070        { 
    71                 // IE does not understand regExp!!! 
    72                 if (is_ie) 
    73                         var reTipo = /^[a-z0-9 \-_+=]*$/i; 
    74                 else 
    75                         eval('var reTipo = /^[a-z0-9 \-_+=áéíóúàèìòùâêôãõÃÕÁÉÍÓÚÀÈÌÒÙÂÊÔçÇüñ]*$/i'); 
    76                 return reTipo.test(exp); 
     71                // IE does not understand accents in regex! that \xNN are the hex codes for the accented characters! 
     72                var reTipo = /^[\w\xda\xc1\xc9\xcd\xd3\xdd\xe1\xe9\xed\xfa\xfd\xf3\xc0\xc8\xcc\xd2\xe0\xe8\xec\xf2\xf9\xd9\xc3\xd1\xd5\xe3\xf1\xf5\xc2\xca\xce\xd4\xe2\xea\xee\xf4\xdb\xfb\xc7\xe7\xc4\xd6\xe4\xf6\xfc\xcb\xcf\xeb\xef\xff \-_+=]*$/i; 
     73                if(exp.search(reTipo) == -1) 
     74                        return false; 
     75                    else 
     76                        return true; 
     77 
    7778        } 
    7879 
Note: See TracChangeset for help on using the changeset viewer.