8000 [Plugin] enrich problem info. · liaoziyang/leetcode-cli@769b057 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 769b057

Browse files
committed
[Plugin] enrich problem info.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent c9f2787 commit 769b057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/plugins/leetcode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ plugin.getProblem = function(problem, cb) {
146146
problem.templates = pageData.codeDefinition;
147147
problem.testcase = pageData.sampleTestCase;
148148
problem.testable = pageData.enableRunCode;
149+
problem.templateMeta = eval(pageData.metaData);
149150

150151
return cb(null, problem);
151152
});

0 commit comments

Comments
 (0)
0