diff --git a/merge.js b/merge.js index e454f8f5e..645d812d7 100644 --- a/merge.js +++ b/merge.js @@ -94,7 +94,7 @@ module.exports = function (pullreq, callback) { function verifyFilename (prInfo) { var filename = prInfo.filename.toLowerCase() - if (filename.match('contributors/add-' + stats.user.toLowerCase())) { + if (filename.match(new RegExp('^contributors/add-' + stats.user.toLowerCase() + '.txt$'))) { console.log(new Date(), 'PR ', stats.prNum, 'Filename: MATCH ', stats.user) return verifyContent(prInfo) } else {