s/replaceAll/replace/ (#4154)
This commit is contained in:
parent
2253b85761
commit
e44735fc87
@ -103,8 +103,8 @@ function applyFilter (validators: ValidatorInfo[], medianComm: number, allIdenti
|
||||
if (thisIdentity.display) {
|
||||
const sanitized = thisIdentity.display
|
||||
.replace(/[^\x20-\x7E]/g, '')
|
||||
.replaceAll('-', ' ')
|
||||
.replaceAll('_', ' ')
|
||||
.replace(/-/g, ' ')
|
||||
.replace(/_/g, ' ')
|
||||
.split(' ')
|
||||
.map((p) => p.trim())
|
||||
.filter((v) => !!v);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user