mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Merge pull request #86 from sauyon/dependency-fix
Allow dependencies to match imports of subpackages
This commit is contained in:
@@ -32,7 +32,7 @@ abstract class Dependency extends Locatable {
|
||||
* An import of this dependency.
|
||||
*/
|
||||
ImportSpec getAnImport() {
|
||||
result.getPath() = this.getDepPath() and
|
||||
result.getPath().regexpMatch("\\Q" + this.getDepPath() + "\\E(/.*)?") and
|
||||
this.relevantForFile(result.getFile())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user