make query more robust

This commit is contained in:
Robert 2021-04-23 10:01:28 +01:00
parent ce467e7e36
commit 8207018b75

View file

@ -43,7 +43,7 @@ class ActionsLibImport extends ImportDeclaration {
ActionsLibImport() {
getImportedPath().getValue().matches("@actions/%") and
not isSafeActionLib(getImportedPath().getValue()) or
getImportedPath().getValue() = "./actions-util"
getImportedPath().getValue().matches("/actions-util$")
}
string getName() {