Skip to content

显示错误 #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## version 2.7.3

- 某些情况下颜色对比显示错误

## version 2.7.2

- BWC92 & WC321 数据
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode-problem-rating",
"displayName": "LeetCode",
"description": "LeetCode 官方插件增强, 代码开源, 增加 LeetCode 题目难度分, 给个star吧, 球球了",
"version": "2.7.2",
"version": "2.7.3",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/service/SubmissionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SubmissionService extends BaseWebViewService {
}

private sections_filtter(key) {
if (key.substring(0, 6) == "Output") {
if (key.substring(0, 6) == "Output" || key.substring(0, 6) == "Answer") {
return false;
} else if (key.substring(0, 8) == "Expected") {
return false;
Expand All @@ -50,7 +50,7 @@ class SubmissionService extends BaseWebViewService {
let ans;
let exp;
for (const key in result) {
if (key.substring(0, 6) == "Output") {
if (key.substring(0, 6) == "Output" || key.substring(0, 6) == "Answer") {
ans = key;
} else if (key.substring(0, 8) == "Expected") {
exp = key;
Expand Down Expand Up @@ -156,7 +156,7 @@ class SubmissionService extends BaseWebViewService {
let expected_key;
for (const key in temp) {
if (typeof key == "string") {
if (key.substring(0, 6) == "Output") {
if (key.substring(0, 6) == "Output" || key.substring(0, 6) == "Answer") {
output_key = key;
} else if (key.substring(0, 8) == "Expected") {
expected_key = key;
Expand Down