mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: improve whitespace handling for multi-license file recognition
This commit is contained in:
@@ -225,7 +225,7 @@ predicate isMultiLicenseBundle(TopLevel tl) {
|
||||
// case: ordinary block comments with "@license" lines
|
||||
count(BlockComment head |
|
||||
head.getTopLevel() = tl and
|
||||
head.getLine(_).regexpMatch("(?i) *\\* @license .*")
|
||||
head.getLine(_).regexpMatch("(?i)[\\s*]*@license\\b.*")
|
||||
) > 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user