{"size": 311, "ext": "js", "max_stars_repo_path": "dredd/hooks/trailing_new_line.js", "max_stars_repo_name": "VaiteLR/entourage-ror", "max_stars_repo_stars_event_min_datetime": "2015-07-21T16:48:26.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-01T13:11:31.000Z", "max_issues_repo_path": "dredd/hooks/trailing_new_line.js", "max_issues_repo_name": "VaiteLR/entourage-ror", "max_issues_repo_issues_event_min_datetime": "2016-07-12T18:09:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T21:56:42.000Z", "max_forks_repo_path": "dredd/hooks/trailing_new_line.js", "max_forks_repo_name": "VaiteLR/entourage-ror", "max_forks_repo_forks_event_min_datetime": "2017-04-02T18:01:48.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-07T05:34:46.000Z"}
{"max_stars_count": 8, "max_issues_count": 28, "max_forks_count": 5, "avg_line_length": 38.875, "max_line_length": 110, "alphanum_fraction": 0.6591639871}
var hooks = require('hooks');

hooks.before("Users > User login > Login user", function(transaction) {
  if (transaction.request['headers']['Content-Type'] === 'application/x-www-form-urlencoded; charset=utf-8') {
    transaction.request['body'] = transaction.request['body'].replace(/^\s+|\s+$/g, "");
  }
});
