From 74daef82325c5f0e987f1fb0b8cc923db6597677 Mon Sep 17 00:00:00 2001 From: Craig Menning Date: Thu, 12 Dec 2013 16:11:20 -0600 Subject: [PATCH] Updated server instance regex --- src/Phpforce/SoapClient/Result/LoginResult.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Phpforce/SoapClient/Result/LoginResult.php b/src/Phpforce/SoapClient/Result/LoginResult.php index 535868f..87080bb 100644 --- a/src/Phpforce/SoapClient/Result/LoginResult.php +++ b/src/Phpforce/SoapClient/Result/LoginResult.php @@ -83,7 +83,7 @@ public function getServerInstance() } $match = preg_match( - '/https:\/\/(?[^-\.]+)/', + '/https:\/\/(?.+).salesforce.com/', $this->serverUrl, $matches ); @@ -94,4 +94,4 @@ public function getServerInstance() return $matches['instance']; } -} \ No newline at end of file +}