mask_ask_name use ⬤⬤

This commit is contained in:
rulingcom 2026-06-09 17:04:23 +08:00
parent 115a0b26cf
commit 114b3b31b3
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ module Admin::AsksHelper
if char_count <= 1 if char_count <= 1
cleaned cleaned
elsif char_count <= 3 elsif char_count <= 3
cleaned[0] + '' cleaned[0] + '⬤⬤'
else else
cleaned[0..1] + '' cleaned[0..1] + '⬤⬤'
end end
else else
cleaned = name.gsub(/\p{Han}/, '') cleaned = name.gsub(/\p{Han}/, '')
@ -29,7 +29,7 @@ module Admin::AsksHelper
if words.length <= 1 if words.length <= 1
words[0].to_s words[0].to_s
else else
words[1] + '..' words[1] + '....'
end end
end end
end end