Skip to content

Commit

Permalink
update regex yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Oct 29, 2024
1 parent 2dcaa22 commit 46dcda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion starship/exposer/handler_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion starship/tests/e2e/configs/three-chain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ registry:
grpc: 9091

exposer:
image: anmol1696/exposer:20241029-793fcee
image: anmol1696/exposer:20241029-2dcaa22

0 comments on commit 46dcda9

Please sign in to comment.