Update remove color regex in ping.js (#848)

This commit is contained in:
Nihat 2021-04-12 00:13:06 +03:00 committed by GitHub
parent 6987c3aff6
commit 4a85609902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ if (process.argv.length < 3 || process.argv.length > 3) { // Check for args for
}
function removeColorsFromString (text) { // Removing minecraft colors from strings, because console can`t read it and it will look crazy.
return text.replace(a|§b|§c|§d|§e|§1|§2|§3|§4|§5|§6|§7|§8|§9|§k|§l|§m|§n|§o|§f|§r/g, '')
return text.replace(./g, '')
}
let host