修复:readme报错去重
This commit is contained in:
parent
2d113ff02a
commit
30a17f53b3
|
@ -210,11 +210,13 @@ module RepositoriesHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
after_ss_souces = content.to_s.scan(s_regex)
|
after_ss_souces = content.to_s.scan(s_regex).uniq
|
||||||
after_ss_souces.each_with_index do |s, index|
|
after_ss_souces.each_with_index do |s, index|
|
||||||
content = content.gsub("#{s[0]}","#{total_sources[:ss][index][0]}")
|
content = content.gsub("#{s[0]}","#{total_sources[:ss][index][0]}")
|
||||||
end
|
end
|
||||||
after_ss_c_souces = content.to_s.scan(s_regex_c)
|
after_ss_c_souces = content.to_s.scan(s_regex_c).uniq
|
||||||
|
puts after_ss_c_souces
|
||||||
|
puts total_sources
|
||||||
after_ss_c_souces.each_with_index do |s, index|
|
after_ss_c_souces.each_with_index do |s, index|
|
||||||
content = content.gsub("#{s[0]}","#{total_sources[:ss_c][index][0]}")
|
content = content.gsub("#{s[0]}","#{total_sources[:ss_c][index][0]}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue