Skip to content

Commit 848f2ab

Browse files
authored
Fix the bug that could not test (#29)
1 parent 3640b49 commit 848f2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/leetcode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function formatResult(result) {
258258
.values()
259259
.value();
260260

261-
if (result.submission_id.includes('interpret')) {
261+
if (/[runcode|interpret].*/.test(result.submission_id)) {
262262
// It's testing
263263
let output = result.code_output || [];
264264
if (Array.isArray(output)) {

0 commit comments

Comments
 (0)