Update app/models/user/named.rb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Adrien Maston
2026-03-11 13:36:09 +01:00
committed by GitHub
parent 7a6c905a32
commit 31975be1fa
+1 -1
View File
@@ -20,6 +20,6 @@ module User::Named
def familiar_name def familiar_name
names = name.split names = name.split
return name if names.length <= 1 return name if names.length <= 1
"#{names.first}&nbsp;#{names[1..].map { |n| "#{n[0]}." }.join}".html_safe "#{names.first}\u00A0#{names[1..].map { |n| "#{n[0]}." }.join}"
end end
end end