forked from MapComplete/MapComplete
		
	Add trim to email validation
This commit is contained in:
		
							parent
							
								
									72b5df3ff5
								
							
						
					
					
						commit
						bdcc3329b7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -733,6 +733,7 @@ class EmailTextField extends TextFieldDef { | |||
|         if (str === undefined) { | ||||
|             return false | ||||
|         } | ||||
|         str = str.trim() | ||||
|         if (str.startsWith("mailto:")) { | ||||
|             str = str.substring("mailto:".length) | ||||
|         } | ||||
|  | @ -743,6 +744,7 @@ class EmailTextField extends TextFieldDef { | |||
|         if (str === undefined) { | ||||
|             return undefined | ||||
|         } | ||||
|         str = str.trim() | ||||
|         if (str.startsWith("mailto:")) { | ||||
|             str = str.substring("mailto:".length) | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue