mirror of
https://github.com/onyx-and-iris/q3rcon-ps.git
synced 2025-02-26 19:55:11 +00:00
upd regex.
values with colour codes now returned
This commit is contained in:
parent
22d036cbab
commit
396813114b
@ -90,7 +90,7 @@ Function Send-RconCommand() {
|
||||
$resp = $rcon.Send($line)
|
||||
}
|
||||
|
||||
if ($resp -match '^["](?<name>[a-z_]+)["]\sis[:]\s["](?<value>[A-Za-z_]+)\^7["]\s') {
|
||||
if ($resp -match '^["](?<name>[a-z_]+)["]\sis[:]\s["](?<value>.*?)\^7["]\s') {
|
||||
$RLbl.Text = $Matches.name + ": " + $Matches.value
|
||||
}
|
||||
$OTB.Text = ""
|
||||
|
Loading…
Reference in New Issue
Block a user