Skip to content

修复某些情况下调用 allcase 报错,如 1017 题 #213

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
Apr 7, 2023
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.19.2

- 修复某些情况下调用 allcase 报错,如 1017 题

## version 2.19.1

- 区域调试参数,等到使用的时候才生成
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": "%main.description%",
"version": "2.19.1",
"version": "2.19.2",
"author": "ccagml",
"publisher": "ccagml",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/rpc/utils/storageUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ class StorageUtils {

// 去掉头尾的\n
public deleteWriteCaseHeadENDn(testCase) {
if (testCase.length < 3) {
return testCase;
}
// if (testCase.length < 3) {
// return testCase;
// }
let start = 0;
let end = testCase.length - 1;
let flag = false;
Expand Down