Commit 936118c3 authored by jaapjansma's avatar jaapjansma

Merge branch 'master' into 'master'

Fix js converting Title into Name

See merge request !2
parents 48383b00 10cef759
......@@ -86,7 +86,7 @@
$scope.formProcessor.name = newFormProcessorTitle;
$scope.formProcessor.name = $scope.formProcessor.name.toLowerCase();
$scope.formProcessor.name = $scope.formProcessor.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.formProcessor.name = $scope.formProcessor.name.replace(/_+n/g, '_');
$scope.formProcessor.name = $scope.formProcessor.name.replace(/_+/g, '_');
}
}, true);
......
......@@ -35,7 +35,7 @@
$scope.action.name = newTitle;
$scope.action.name = $scope.action.name.toLowerCase();
$scope.action.name = $scope.action.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.action.name = $scope.action.name.replace(/_+n/g, '_');
$scope.action.name = $scope.action.name.replace(/_+/g, '_');
}
}, true);
......
......@@ -30,7 +30,7 @@
$scope.input.name = newTitle;
$scope.input.name = $scope.input.name.toLowerCase();
$scope.input.name = $scope.input.name.replace(/[^a-zA-Z\d]/g, '_');
$scope.input.name = $scope.input.name.replace(/_+n/g, '_');
$scope.input.name = $scope.input.name.replace(/_+/g, '_');
}
}, true);
......
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