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

Sign up
Appearance settings

Commit 2a0f1a6

Browse files
author
openset
committed
Update: Restore
1 parent 633a237 commit 2a0f1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎internal/leetcode/question_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (question *questionType) Restore() {
233233
}
234234
reg := regexp.MustCompile(pattern)
235235
matches := reg.FindSubmatch(body)
236-
if len(matches) >= 2 {
236+
if len(matches) < 2 {
237237
return
238238
}
239239
question.Content = string(bytes.TrimSpace(matches[1]))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /