upd regex.

values with colour codes now returned
This commit is contained in:
onyx-and-iris 2023-12-01 09:46:27 +00:00
parent 22d036cbab
commit 396813114b

View File

@ -90,7 +90,7 @@ Function Send-RconCommand() {
$resp = $rcon.Send($line) $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 $RLbl.Text = $Matches.name + ": " + $Matches.value
} }
$OTB.Text = "" $OTB.Text = ""