Merge pull request #86 from sauyon/dependency-fix

Allow dependencies to match imports of subpackages
This commit is contained in:
Max Schaefer
2020-04-03 20:35:07 +01:00
committed by GitHub

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