aboutsummaryrefslogtreecommitdiffstats
path: root/services/convert
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-27 10:03:49 +0200
committerGitHub <noreply@github.com>2024-04-27 08:03:49 +0000
commit9b2536b78fdcd3cf444a2f54857d9871e153858f (patch)
tree64a2a18c397a44e4e3cf1fc392d696d919e39685 /services/convert
parentdcc3c17e5c41ad446b71215b095617e066a2e8e1 (diff)
downloadgitea-9b2536b78fdcd3cf444a2f54857d9871e153858f.tar.gz
gitea-9b2536b78fdcd3cf444a2f54857d9871e153858f.zip
Update misspell to 0.5.1 and add `misspellings.csv` (#30573)
Misspell 0.5.0 supports passing a csv file to extend the list of misspellings, so I added some common ones from the codebase. There is at least one typo in a API response so we need to decided whether to revert that and then likely remove the dict entry.
Diffstat (limited to 'services/convert')
-rw-r--r--services/convert/issue_comment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/convert/issue_comment.go b/services/convert/issue_comment.go
index 9ffaf1e84c..9ec9ac7684 100644
--- a/services/convert/issue_comment.go
+++ b/services/convert/issue_comment.go
@@ -72,8 +72,8 @@ func ToTimelineComment(ctx context.Context, repo *repo_model.Repository, c *issu
c.Type == issues_model.CommentTypeStopTracking ||
c.Type == issues_model.CommentTypeDeleteTimeManual) &&
c.Content[0] == '|' {
- // TimeTracking Comments from v1.21 on store the seconds instead of an formated string
- // so we check for the "|" delimeter and convert new to legacy format on demand
+ // TimeTracking Comments from v1.21 on store the seconds instead of an formatted string
+ // so we check for the "|" delimiter and convert new to legacy format on demand
c.Content = util.SecToTime(c.Content[1:])
}
}