Skip to content

Commit d35fd19

Browse files
committed
fix regex
1 parent be999f3 commit d35fd19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/remote/HttpCommandExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class HttpCommandExecutor implements WebDriverCommandExecutor {
112112
*/
113113
public function __construct($url, $auth_method, $auth_creds) {
114114

115-
preg_match("/^(https?:\/\/)(.*):(.*)@(.*)/U", $url, $matches);
115+
preg_match("/^(https?:\/\/)(.*):(.*)@(.*?)/U", $url, $matches);
116116

117117
print "url:\n$url\n";
118118
print "matches:\n";

0 commit comments

Comments
 (0)