Skip to content

Commit c1f1b0a

Browse files
committed
修复某些情况下调用 allcase 报错,如 1017 题
1 parent 2b52321 commit c1f1b0a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## version 2.19.2
2+
3+
- 修复某些情况下调用 allcase 报错,如 1017 题
4+
15
## version 2.19.1
26

37
- 区域调试参数,等到使用的时候才生成

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-leetcode-problem-rating",
33
"displayName": "LeetCode",
44
"description": "%main.description%",
5-
"version": "2.19.1",
5+
"version": "2.19.2",
66
"author": "ccagml",
77
"publisher": "ccagml",
88
"license": "MIT",

src/rpc/utils/storageUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ class StorageUtils {
420420

421421
// 去掉头尾的\n
422422
public deleteWriteCaseHeadENDn(testCase) {
423-
if (testCase.length < 3) {
424-
return testCase;
425-
}
423+
// if (testCase.length < 3) {
424+
// return testCase;
425+
// }
426426
let start = 0;
427427
let end = testCase.length - 1;
428428
let flag = false;

0 commit comments

Comments
 (0)