mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Add quotes around package name to correct parsing
This commit is contained in:
@@ -108,7 +108,11 @@ module ModelExport<ModelExportSig S> {
|
||||
}
|
||||
|
||||
predicate exposedName(API::Node node, string type, string path) {
|
||||
node = API::moduleExport(type) and path = ""
|
||||
exists(string moduleName |
|
||||
node = API::moduleExport(moduleName) and
|
||||
path = "" and
|
||||
type = "'" + moduleName + "'"
|
||||
)
|
||||
}
|
||||
|
||||
predicate suggestedName(API::Node node, string type) {
|
||||
|
||||
Reference in New Issue
Block a user