Skip to content

Commit

Permalink
Minor UI Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shobhit2884 committed Jan 16, 2019
1 parent 635c760 commit 91cf525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/templateeditor/template.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export function TemplateController($scope, userGroupService, $filter, $rootScope
var count = copyCount(template, vm.templateName);
copyName = "("+(count.highestcopy+1)+")";
vm.item ={
name:template.name.replace(/(\[.*?\]|\(.*?\)) */g, "") +copyName,
name:template.name.replace(/\(.*\)/, '')+copyName,
body:template.body
}

Expand All @@ -256,7 +256,7 @@ export function TemplateController($scope, userGroupService, $filter, $rootScope
var regex = /\([^)]*\)/g;

for (var i = 0; i < templateList.length; i++) {
if (templateList[i].replace(/(\[.*?\]|\(.*?\)) */g, "") === template.name.replace(/(\[.*?\]|\(.*?\)) */g, "")) {
if (templateList[i].replace(/\(.*\)/, '') === template.name.replace(/\(.*\)/, '')) {
count++;
var matches = regExp.exec(templateList[i]);
if(matches == null){
Expand Down

0 comments on commit 91cf525

Please sign in to comment.