Simplify SSH fingerprint regexp extraction
[\d\h] is the same as \h
This commit is contained in:
parent
c8bb171664
commit
5dbe94dc9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue