This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
update check keywords
pull/338/head
chenjing
2 years ago
parent
892aa31ea9
commit
8d7c114b40
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/accounts_controller.rb
+ 1
- 1
app/controllers/accounts_controller.rb
View File
@@ -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
Write
Preview
Loading…
Cancel
Save