sanjorgek/sails-hook-routes-permissions

View on GitHub

Showing 1 of 1 total issue

Function exports has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in routesPermissions/index.js - About 1 hr to fix
Severity
Category
Status
Source
Language