We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af64b31 commit 0372cccCopy full SHA for 0372ccc
javascript/ql/lib/semmle/javascript/frameworks/CookieLibraries.qll
@@ -80,7 +80,7 @@ private predicate canHaveSensitiveCookie(DataFlow::Node node) {
80
*/
81
bindingset[s]
82
private string getCookieName(string s) {
83
- result = s.regexpCapture("\\s*\\b([^=\\s]*)\\b\\s*=.*", 1)
+ result = s.regexpCapture("([^=]*)=.*", 1).trim()
84
}
85
86
/**
0 commit comments