8000 Update leetcode-cli to v2.6.1 · wanglcwork/vscode-leetcode@b3ddf71 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b3ddf71

Browse files
committed
Update leetcode-cli to v2.6.1
1 parent 3bae2a2 commit b3ddf71

File tree

4 files changed

+31
-37
lines changed

4 files changed

+31
-37
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
55

66
## [0.8.1]
77
### Changed
8-
- Upgrade LeetCode CLI to v2.6.0
8+
- Upgrade LeetCode CLI to v2.6.1
99

1010
## [0.8.0]
1111
### Added

package-lock.json

Lines changed: 28 additions & 34 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
@@ -258,7 +258,7 @@
258258
},
259259
"dependencies": {
260260
"fs-extra": "^6.0.1",
261-
"leetcode-cli": "2.6.0",
261+
"leetcode-cli": "2.6.1",
262262
"opn": "^5.2.0"
263263
}
264264
}

src/commands/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function listProblems(): Promise<IProblem[]> {
2626
const result: string = await leetCodeExecutor.listProblems(showLocked);
2727
const problems: IProblem[] = [];
2828
const lines: string[] = result.split("\n");
29-
const reg: RegExp = /^(.)\s(.{1,2})\s(.)\s\[\s*(\d*)\]\s*(.*)\s*(Easy|Medium|Hard)\s*\((\s*\d+\.\d+ %)\)/;
29+
const reg: RegExp = /^(.)\s(.{1,2})\s(.)\s\[\s*(\d*)\s*\]\s*(.*)\s*(Easy|Medium|Hard)\s*\((\s*\d+\.\d+ %)\)/;
3030
for (const line of lines) {
3131
const match: RegExpMatchArray | null = line.match(reg);
3232
if (match && match.length === 8) {

0 commit comments

Comments
 (0)
0