提交 9c4015f3 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #8430 from cirosantilli/simplify-ssh-fingerprint-regex

Simplify SSH fingerprint regexp extraction
......@@ -89,7 +89,7 @@ class Key < ActiveRecord::Base
end
if cmd_status.zero?
cmd_output.gsub /([\d\h]{2}:)+[\d\h]{2}/ do |match|
cmd_output.gsub /(\h{2}:)+\h{2}/ do |match|
self.fingerprint = match
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册