8000
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 90b65c5 commit f44f54bCopy full SHA for f44f54b
lib/plugins/leetcode.js
@@ -3 8218 13,8 +313,8 @@ plugin.getSubmission = function(submission, cb) {
313
var re = body.match(/submissionCode:\s('[^']*')/);
314
if (re) submission.code = eval(re[1]);
315
316
- re = body.match(/distribution_formatted:\s('[^']*')/);
317
- if (re) submission.distributionChart = JSON.parse(eval(re[1]));
+ re = body.match(/distribution_formatted:\s('[^']+')/);
+ if (re) submission.distributionChart = JSON.parse(eval(re[1] || '{}'));
318
return cb(null, submission);
319
});
320
};
0 commit comments