From 46dcda9aef49f711d8c119354f19e64e40814fc1 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 29 Oct 2024 16:10:12 +0400 Subject: [PATCH] update regex yet again --- starship/exposer/handler_relayer.go | 2 +- starship/tests/e2e/configs/three-chain.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/starship/exposer/handler_relayer.go b/starship/exposer/handler_relayer.go index 6478dc84..455d1338 100644 --- a/starship/exposer/handler_relayer.go +++ b/starship/exposer/handler_relayer.go @@ -52,7 +52,7 @@ func (a *AppServer) getClients(chainID string) ([]string, error) { a.logger.Debug("output from get clients:", zap.ByteString("cmdOutput", output)) // Regular expression to match the client_id in the output - re := regexp.MustCompile(`client_id:\s*ClientId\(\s*"([^"]+)"\s*\)`) + re := regexp.MustCompile(`(?m)^\s*client_id:\s*ClientId\(\s*"([^"]+)"`) matches := re.FindAllStringSubmatch(string(output), -1) var clients []string diff --git a/starship/tests/e2e/configs/three-chain.yaml b/starship/tests/e2e/configs/three-chain.yaml index 3ee15b8d..42f239f1 100644 --- a/starship/tests/e2e/configs/three-chain.yaml +++ b/starship/tests/e2e/configs/three-chain.yaml @@ -60,4 +60,4 @@ registry: grpc: 9091 exposer: - image: anmol1696/exposer:20241029-793fcee + image: anmol1696/exposer:20241029-2dcaa22