Commit 10cef759 authored by noah's avatar noah

Fix js converting Title into Name

"First Name" was being converted to "first_ame" (note the missing "n")
parent 0400fd56
......@@ -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