mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
add model for the cash library
This commit is contained in:
@@ -406,11 +406,11 @@ module JQuery {
|
||||
|
||||
private class DefaultRange extends Range {
|
||||
DefaultRange() {
|
||||
// either a reference to a global variable `$` or `jQuery`
|
||||
this = DataFlow::globalVarRef(any(string jq | jq = "$" or jq = "jQuery"))
|
||||
// either a reference to a global variable `$`, `jQuery`, or `cash`
|
||||
this = DataFlow::globalVarRef(["$", "jQuery", "cash"])
|
||||
or
|
||||
// or imported from a module named `jquery` or `zepto`
|
||||
this = DataFlow::moduleImport(["jquery", "zepto"])
|
||||
// or imported from a module named `jquery`, `zepto`, or `cash-dom`
|
||||
this = DataFlow::moduleImport(["jquery", "zepto", "cash-dom"])
|
||||
or
|
||||
this.hasUnderlyingType("JQueryStatic")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user