用户名/n的问题

dev_forum
jingquan huang 6 years ago
parent b08d6cf54f
commit ce381b24d6

@ -407,7 +407,7 @@ class User < ApplicationRecord
name = lastname + firstname
name.blank? ? (nickname.blank? ? login : nickname) : name
name.gsub(/\s+/, '').strip #6.11 -hs
name.gsub(/\s+/, '').gsub(/\n/, '').strip #6.11 -hs
end
# 用户是否选题毕设课题

Loading…
Cancel
Save