Showing 1 of 1 total issue
Function exports
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (sails) {
function findRoute (route) {
return function(routePattern) {
var routeMatcher = new RegExp(routePattern.replace(/:[^\s/]+/g, "([\\w-]+)"));
var match = route.match(routeMatcher);
- Create a ticketCreate a ticket