s/replaceAll/replace/ (#4154)

This commit is contained in:
Jaco Greeff 2020-12-03 18:48:06 +01:00 committed by GitHub
parent 2253b85761
commit e44735fc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);