Skip to content

Commit 2dcaa22

Browse files
committed
fix regex for fetching client
1 parent 793fcee commit 2dcaa22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

starship/exposer/handler_relayer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (a *AppServer) getClients(chainID string) ([]string, error) {
5252
a.logger.Debug("output from get clients:", zap.ByteString("cmdOutput", output))
5353

5454
// Regular expression to match the client_id in the output
55-
re := regexp.MustCompile(`client_id: ClientId\(\s*"(.*?)"\s*\)`)
55+
re := regexp.MustCompile(`client_id:\s*ClientId\(\s*"([^"]+)"\s*\)`)
5656
matches := re.FindAllStringSubmatch(string(output), -1)
5757

5858
var clients []string

starship/tests/e2e/configs/three-chain.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ registry:
6060
grpc: 9091
6161

6262
exposer:
63-
image: anmol1696/exposer:20241029-640808d
63+
image: anmol1696/exposer:20241029-793fcee

0 commit comments

Comments
 (0)