Fix to get full BMC IP address / hostname

Resolves openbmc/openbmc#2648

Change-Id: I5669a3569fff086e30e4c794edfe19f9c17208d8
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/app/common/services/dataService.js b/app/common/services/dataService.js
index 51e67bf..0676d7c 100644
--- a/app/common/services/dataService.js
+++ b/app/common/services/dataService.js
@@ -35,7 +35,7 @@
             this.remote_window_active = false;
 
             this.getServerId = function(){
-                 return this.host.replace(/[^\d]+/m,"");
+                 return this.host.replace(/^https?\:\/\//ig,"");
             }
 
             this.reloadServerId = function(){
@@ -119,4 +119,4 @@
             }
         }]);
 
-})(window.angular);
\ No newline at end of file
+})(window.angular);