mask_ask_name use ⬤⬤
This commit is contained in:
parent
115a0b26cf
commit
114b3b31b3
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue