mirror of
https://github.com/mempool/mempool.git
synced 2025-03-26 17:51:45 +01:00
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;
|
||||
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
|
||||
if (timestamp > Math.floor(Date.now() / 1000) || timestamp < 1231006505) {
|
||||
if (timestamp > Math.floor(Date.now() / 1000)) {
|
||||
this.isSearching = false;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user