Fix package filename regex to match files below the root folder

This commit is contained in:
Pedro Pombeiro 2019-01-17 23:24:24 +01:00
parent dab5d6aa94
commit 384ee41b50
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ async function queueCheckAsync (context: Context, checkSuite: Octokit.ChecksCrea
let check = pendingChecks[head_sha]
let checkedDepCount = 0
let packageJsonFilenames = []
const packageFilenameRegex = /^package\.json(.orig)?$/g
const packageFilenameRegex = /^(.*\/)?package\.json(.orig)?$/g
check.output.annotations = undefined
let analysisResult = new AnalysisResult()