mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
Merge pull request '调整关键词判定,去掉emoj干扰' (#139) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
@@ -361,7 +361,7 @@ class AccountsController < ApplicationController
|
||||
end
|
||||
|
||||
def check_keywords
|
||||
text = params[:text]&.gsub(/\s+/, "")
|
||||
text = params[:text].to_s.each_char.select { |c| c.bytes.first < 240 }.join('')
|
||||
tip_exception("无法使用以下关键词:#{text},请重新命名") if ReversedKeyword.check_exists?(text)
|
||||
render_ok
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user