JS: Add quotes around package name to correct parsing

This commit is contained in:
Asger F
2024-04-23 20:04:08 +02:00
parent 3592e76269
commit e4f23b31c6

View File

@@ -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) {