Skip to content

Commit 8613fc5

Browse files
committed
Merge pull request #15 from j-d/patch-1
Fixed issue with "my" instances
2 parents 9f014c8 + dd83efb commit 8613fc5

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)