Remove extra spaces and multiple spaces

This commit is contained in:
Alan Ye 2024-04-14 11:50:37 +08:00 committed by GitHub
parent 9925e97e46
commit ae71b7b379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
- content_for :page_title do
display_name(@account).gsub(/:\w+:/, '') + " (#{acct(@account)})"
"#{display_name(@account).gsub(/:\w+:/, '').strip} (#{acct(@account)})".gsub(/\s+/, ' ')
- content_for :header_tags do
- if @account.user_prefers_noindex?