Navigation Menu

Skip to content

Commit

Permalink
update GetExcerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
aichy126 committed Feb 24, 2023
1 parent f80af9f commit 90bfa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/schema/tag_schema.go
Expand Up @@ -90,7 +90,7 @@ type GetTagResp struct {
}

func (tr *GetTagResp) GetExcerpt() {
excerpt := strings.TrimSpace(tr.OriginalText)
excerpt := strings.TrimSpace(tr.ParsedText)
idx := strings.Index(excerpt, "\n")
if idx >= 0 {
excerpt = excerpt[0:idx]
Expand Down

0 comments on commit 90bfa0d

Please sign in to comment.