Skip to content

Commit

Permalink
fix url regexp (zserge#52)
Browse files Browse the repository at this point in the history
fixes invalid control character in URL error on Windows
  • Loading branch information
velut authored and zserge committed Mar 27, 2019
1 parent 52fe2ab commit f15fbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://.*)\n$`)
re := regexp.MustCompile(`^DevTools listening on (ws:https://.*?)\r?\n$`)
m, err := readUntilMatch(pipe, re)
if err != nil {
c.kill()
Expand Down

0 comments on commit f15fbf8

Please sign in to comment.