You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/11/22 13:41:04 UTC

kylin git commit: float data format func bug

Repository: kylin
Updated Branches:
  refs/heads/v1.6.0-rc2 33bb7c293 -> d675b7a06


float data format func bug

Signed-off-by: shaofengshi <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/d675b7a0
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/d675b7a0
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/d675b7a0

Branch: refs/heads/v1.6.0-rc2
Commit: d675b7a061ab924381999c0724e82f6e5b16fe8c
Parents: 33bb7c2
Author: luguosheng <55...@qq.com>
Authored: Tue Nov 22 18:50:52 2016 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Tue Nov 22 21:40:38 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/utils/utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/d675b7a0/webapp/app/js/utils/utils.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/utils/utils.js b/webapp/app/js/utils/utils.js
index d25c4e1..2e95342 100644
--- a/webapp/app/js/utils/utils.js
+++ b/webapp/app/js/utils/utils.js
@@ -67,7 +67,7 @@ KylinApp.factory('VdmUtil', function ($modal, $timeout, $location, $anchorScroll
 
     SCToFloat:function(data){
       var resultValue = "";
-      if (data.indexOf('E') != -1){
+      if (data&&data.indexOf('E') != -1){
         var regExp = new RegExp('^((\\d+.?\\d+)[Ee]{1}(\\d+))$', 'ig');
         var result = regExp.exec(data);
         var power = "";