From c5f1ca3d917cb89c2da19a946734685d2ea2b07b Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Wed, 27 Aug 2014 17:22:01 -0400 Subject: [PATCH] chore(compare-master-to-stable): make checks for bugfixes better Prevent the script from alerting you if a docs fix has something like "Fixes typo in foo", which is not how bugfixes are worded. Closes #8801 --- compare-master-to-stable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compare-master-to-stable.js b/compare-master-to-stable.js index c550d03252a5..dcaf4904fd92 100755 --- a/compare-master-to-stable.js +++ b/compare-master-to-stable.js @@ -145,7 +145,7 @@ then(allInSeries(function (branch) { line = line.split(' '); var sha = line.shift(); var msg = line.join(' '); - return sha + (msg.toLowerCase().indexOf('fix') === -1 ? ' ' : ' * ') + msg; + return sha + ((/fix\([^\)]+\):/i.test(msg)) ? ' * ' : ' ') + msg; }); branch.log = log.map(function (line) { return line.substr(41);