Commit 71b725af by lepdou

update

parent b676c35d
......@@ -35,7 +35,7 @@ release_history_module.controller("ReleaseHistoryController",
var hasParseNamepaceType = false;
result.forEach(function (release) {
if (!hasParseNamepaceType){
$scope.isTextFile = /([^\s]+(?=\.(json|yaml|yml|xml)$))/gi.test(release.baseInfo.namespaceName);
$scope.isTextFile = /\.(json|yaml|yml|xml)$/gi.test(release.baseInfo.namespaceName);
hasParseNamepaceType = true;
}
$scope.releases.push(release);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment