Skip to content

Commit

Permalink
Fix the regex to match the license reported by licensee
Browse files Browse the repository at this point in the history
At least with licensee 9.2.1 there is no leading '\n' anymore. Fix the
regex to match in any case.
  • Loading branch information
sschuberth committed Sep 14, 2017
1 parent 4f258b3 commit 042aa37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/license-detectable-by-licensee.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 042aa37

Please sign in to comment.