Allow dependencies to match imports of subpackages

This commit is contained in:
Sauyon Lee
2020-04-03 03:30:08 -07:00
parent 407493094d
commit e1a7269a45

View File

@@ -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())
}
}