Skip to content

Commit

Permalink
fix(posts title): edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jun 16, 2023
1 parent 6b81259 commit 6f7109f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@
_title = _title.replace(/, from .+$/, '')
// Edge case: ", sorted by" || ", rated" || ", with a score of"
if (_title.startsWith(', ')) {
_title = _title.slice(2)
}
_title = _title.trim()
_title = capitalize(_title)
Expand Down

0 comments on commit 6f7109f

Please sign in to comment.