Skip to content

Commit ca877c9

Browse files
committed
Fixup refactoring of isRelativePath in PathExprResolver
1 parent d568e9b commit ca877c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/internal/paths/PathExprResolver.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
172172
or
173173
// Resolve from baseUrl of relevant tsconfig.json file
174174
path = expr.getValue() and
175-
path.isRelativePath() and
175+
not path.isRelativePath() and
176176
getAPathMappingFromPathExpr(expr).hasBaseUrl(base)
177177
or
178178
// If the path starts with the name of a package, but did not match any path mapping,

0 commit comments

Comments
 (0)