From 396813114b0003aca977ed8cfda53431b5280c30 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 1 Dec 2023 09:46:27 +0000 Subject: [PATCH] upd regex. values with colour codes now returned --- examples/gui.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gui.ps1 b/examples/gui.ps1 index a7695d6..87ed5fb 100644 --- a/examples/gui.ps1 +++ b/examples/gui.ps1 @@ -90,7 +90,7 @@ Function Send-RconCommand() { $resp = $rcon.Send($line) } - if ($resp -match '^["](?[a-z_]+)["]\sis[:]\s["](?[A-Za-z_]+)\^7["]\s') { + if ($resp -match '^["](?[a-z_]+)["]\sis[:]\s["](?.*?)\^7["]\s') { $RLbl.Text = $Matches.name + ": " + $Matches.value } $OTB.Text = ""