mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
JS: handle additional multi-license file patterns
This commit is contained in:
@@ -222,10 +222,10 @@ predicate isMultiLicenseBundle(TopLevel tl) {
|
||||
)
|
||||
) > 1
|
||||
or
|
||||
// case: ordinary block comments with "@license" lines
|
||||
// case: ordinary block comments lines that start with a license
|
||||
count(BlockComment head |
|
||||
head.getTopLevel() = tl and
|
||||
head.getLine(_).regexpMatch("(?i)[\\s*]*@license\\b.*")
|
||||
head.getLine(_).regexpMatch("(?i)[\\s*]*(@license\\b.*|The [a-z0-9-]+ License (\\([a-z0-9-]+\\))?\\s*)")
|
||||
) > 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user