Skip to content

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

+1-1
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

+28-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
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

+1-1
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)