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 bca58ab commit 59db3a1Copy full SHA for 59db3a1
lib/plugins/leetcode.js
@@ -535,8 +535,7 @@ plugin.login = function(user, cb) {
535
536
function parseCookie(cookie, body, cb) {
537
const SessionPattern = /LEETCODE_SESSION=(.+?)(;|$)/;
538
- let csrfPattern;
539
- csrfPattern = /csrftoken=(.+?)(;|$)/;
+ const csrfPattern = /csrftoken=(.+?)(;|$)/;
540
const reCsrfResult = csrfPattern.exec(cookie);
541
const reSessionResult = SessionPattern.exec(cookie);
542
if (reSessionResult === null || reCsrfResult === null) {
0 commit comments