mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Update remove color regex in ping.js (#848)
This commit is contained in:
parent
6987c3aff6
commit
4a85609902
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue