diff --git a/chrome.go b/chrome.go index 7a9362b..b90b2cf 100644 --- a/chrome.go +++ b/chrome.go @@ -66,7 +66,7 @@ func newChromeWithArgs(chromeBinary string, args ...string) (*chrome, error) { } // Wait for websocket address to be printed to stderr - re := regexp.MustCompile(`^DevTools listening on (ws://.*)\n$`) + re := regexp.MustCompile(`^DevTools listening on (ws://.*?)\r?\n$`) m, err := readUntilMatch(pipe, re) if err != nil { c.kill()