mirror of
https://github.com/github/codeql.git
synced 2026-01-05 18:50:23 +01:00
7 lines
232 B
Plaintext
7 lines
232 B
Plaintext
import semmle.javascript.NodeJS
|
|
|
|
from Require r, string fullpath, string prefix
|
|
where fullpath = r.getImportedPath().getValue() and
|
|
sourceLocationPrefix(prefix)
|
|
select r, fullpath.replaceAll(prefix, ""), r.getImportedModule()
|