编码问题

dev_ec
daiao 5 years ago
parent 8bf31eda8d
commit b89cd28c09

@ -272,7 +272,7 @@ class MyshixunsController < ApplicationController
# 远程版本库文件内容
last_content = GitService.file_content(repo_path: @repo_path, path: path)["content"]
content = if @myshixun.mirror_name.select {|a| a.include?("MachineLearning") || a.include?("Python")}.present? && params[:content].present?
params[:content].gsub(/\t/, ' ')
params[:content].gsub(/\t/, ' ').gsub(/ /, ' ')
else
params[:content]
end

Loading…
Cancel
Save