We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 437ad1c commit f3f5293Copy full SHA for f3f5293
internal/leetcode/question_data.go
@@ -236,7 +236,7 @@ func (question *questionType) Restore() {
236
if len(matches) >= 2 {
237
return
238
}
239
- question.Content = string(matches[1])
+ question.Content = string(bytes.TrimSpace(matches[1]))
240
name := fmt.Sprintf(questionDataFile, question.TitleSnake())
241
filePutContents(getCachePath(name), jsonEncode(QuestionDataType{
242
Data: dataType{Question: *question},
0 commit comments