Skip to content

Commit f3f5293

Browse files
author
openset
committed
TrimSpace
1 parent 437ad1c commit f3f5293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/leetcode/question_data.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (question *questionType) Restore() {
236236
if len(matches) >= 2 {
237237
return
238238
}
239-
question.Content = string(matches[1])
239+
question.Content = string(bytes.TrimSpace(matches[1]))
240240
name := fmt.Sprintf(questionDataFile, question.TitleSnake())
241241
filePutContents(getCachePath(name), jsonEncode(QuestionDataType{
242242
Data: dataType{Question: *question},

0 commit comments

Comments
 (0)