Skip to content

Commit

Permalink
Merge pull request todogroup#45 from sschuberth/fix-licensee-detection
Browse files Browse the repository at this point in the history
Fix the regex to match the license reported by licensee
  • Loading branch information
caniszczyk authored Oct 13, 2017
2 parents ef1d9e3 + 042aa37 commit 61bf9b4
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 61bf9b4

Please sign in to comment.