kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [16/50] [abbrv] kylin git commit: float data format func bug
Date Sun, 27 Nov 2016 10:28:13 GMT
float data format func bug

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


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

Branch: refs/heads/KYLIN-1875
Commit: c8dfa13e633517bbfde7125ce286429f643e5af6
Parents: 2b7fe61
Author: luguosheng <550175214@qq.com>
Authored: Tue Nov 22 18:50:52 2016 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Tue Nov 22 21:43:54 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/c8dfa13e/webapp/app/js/utils/utils.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/utils/utils.js b/webapp/app/js/utils/utils.js
index aabcad5..9da6196 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 = "";


Mime
View raw message