diff --git a/dreditor.user.js b/dreditor.user.js index 5dee807..b26c7fb 100644 --- a/dreditor.user.js +++ b/dreditor.user.js @@ -1602,7 +1602,7 @@ Drupal.behaviors.dreditorPatchNameSuggestion = function (context) { $link.click(function() { var title = Drupal.dreditor.issue.getIssueTitle() || 'title'; title = title.replace(/[^a-zA-Z0-9]+/g, '_'); - // Truncate and remove a heading/trailing undescore + // Truncate and remove a heading/trailing undescore. title = title.substr(0, 60); title = title.replace(/(^_|_$)/, ''); @@ -1783,7 +1783,6 @@ Drupal.dreditor.issue.getSelectedVersionCoreContrib = function() { } }; - /** * Attach commit message generator to issue comment form. */