Skip to content

Commit dd83efb

Browse files
committed
Fixed issue with "my" instances
Fixes issue with instances in the form https://instance.my.salesforce.com
1 parent 9f014c8 commit dd83efb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Phpforce/SoapClient/Result/LoginResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getServerInstance()
8383
}
8484

8585
$match = preg_match(
86-
'/https:\/\/(?<instance>[^-\.]+)/',
86+
'/https:\/\/(?<instance>[^-]+)\.salesforce\.com/',
8787
$this->serverUrl,
8888
$matches
8989
);
@@ -94,4 +94,4 @@ public function getServerInstance()
9494

9595
return $matches['instance'];
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)