diff --git a/rules/license-detectable-by-licensee.js b/rules/license-detectable-by-licensee.js index 433fd2cf..7f5d38c3 100644 --- a/rules/license-detectable-by-licensee.js +++ b/rules/license-detectable-by-licensee.js @@ -5,7 +5,7 @@ const isWindows = require('is-windows') const spawnSync = require('child_process').spawnSync module.exports = function (targetDir, options) { - const expected = '\nLicense: ([^\n]*)' + const expected = /License: ([^\n]+)/ const licenseeOutput = spawnSync(isWindows() ? 'licensee.bat' : 'licensee', [targetDir]).stdout