File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ export interface IsEmailOptions {
5353     *  and the part of the email after the @ symbol matches one of the strings defined in it, 
5454     *  the validation fails. 
5555     */ 
56-     host_blacklist ?: string [ ]  |  undefined ; 
56+     host_blacklist ?: Array < string   |   RegExp >  |  undefined ; 
5757    /** 
5858     * If host_whitelist is set to an array of strings 
5959     * and the part of the email after the @ symbol matches none of the strings defined in it, 
6060     * the validation fails. 
6161     */ 
62-     host_whitelist ?: string [ ]  |  undefined ; 
62+     host_whitelist ?: Array < string   |   RegExp >  |  undefined ; 
6363    /** 
6464     *  If blacklisted_chars receives a string, then the validator will reject emails that include 
6565     *  any of the characters in the string, in the name part. 
Original file line number Diff line number Diff line change @@ -725,11 +725,11 @@ const any: any = null;
725725    } ; 
726726
727727    const  isEmailOptionsWithBlacklistedHosts : validator . IsEmailOptions  =  { 
728-         host_blacklist : [ "domain" ] , 
728+         host_blacklist : [ "domain" ,   / ^ ( [ a - z 0 - 9 \- ] + [ . ] ) * e x a m p l e [ . ] c o m $ / ] , 
729729    } ; 
730730
731731    const  isEmailOptionsWithWhitelistedHosts : validator . IsEmailOptions  =  { 
732-         host_whitelist : [ "domain" ] , 
732+         host_whitelist : [ "domain" ,   / ^ ( [ a - z 0 - 9 \- ] + [ . ] ) * e x a m p l e [ . ] c o m $ / ] , 
733733    } ; 
734734
735735    const  isEmailOptionsWithBlacklistedCharacters : validator . IsEmailOptions  =  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments