Skip to content

Commit

Permalink
fix: also trim dash
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Oct 19, 2018
1 parent 5b89981 commit 851016d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -37,7 +37,7 @@ module.exports = (app) => {
const pr = context.payload.pull_request;
const title = pr.title
.trim()
.replace(/\s+\[?\s*(ONK-0-9+)\s*]?\s*$/, ' $1');
.replace(/[\s-]+\[?\s*(ONK-0-9+)\s*]?\s*$/, ' $1');

if (pr.title !== title) {
console.log(`edit pr title: "${pr.title}" => "${title}"`);
Expand Down

0 comments on commit 851016d

Please sign in to comment.