Skip to content

Commit 769b057

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/plugins/leetcode.js

+1
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)