Remove hard-coded timestamp for regexes
This commit is contained in:
		
							parent
							
								
									9a7e22806d
								
							
						
					
					
						commit
						0ec40eafb4
					
				| @ -272,7 +272,7 @@ export class SearchFormComponent implements OnInit { | |||||||
|         let timestamp: number; |         let timestamp: number; | ||||||
|         this.regexDate.test(searchText) ? timestamp = Math.floor(new Date(searchText).getTime() / 1000) : timestamp = searchText; |         this.regexDate.test(searchText) ? timestamp = Math.floor(new Date(searchText).getTime() / 1000) : timestamp = searchText; | ||||||
|         // Check if timestamp is too far in the future or before the genesis block
 |         // Check if timestamp is too far in the future or before the genesis block
 | ||||||
|         if (timestamp > Math.floor(Date.now() / 1000) || timestamp < 1231006505) { |         if (timestamp > Math.floor(Date.now() / 1000)) { | ||||||
|           this.isSearching = false; |           this.isSearching = false; | ||||||
|           return; |           return; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user